Skip to content

Commit 182fc8d

Browse files
committed
Fix tests
1 parent 8b39b14 commit 182fc8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/logpoller/orm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,8 +2565,8 @@ func insertBlockRangeWithLogs(
25652565
BlockHash: hash,
25662566
BlockNumber: i,
25672567
BlockTimestamp: time.Unix(i*10, 0),
2568-
FinalizedBlockNumber: i - 2,
2569-
SafeBlockNumber: i - 2,
2568+
FinalizedBlockNumber: max(i-2, 0),
2569+
SafeBlockNumber: max(i-2, 0),
25702570
})
25712571
logs = append(logs, GenLog(th.ChainID, 0, i, hash.String(), EmitterABI.Events["Log1"].ID.Bytes(), th.EmitterAddress1))
25722572
}

0 commit comments

Comments
 (0)