Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Apr 17, 2024
1 parent 7ef5f73 commit f6a8162
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func TestLogEventBufferV1_Enqueueviolations(t *testing.T) {
logpoller.Log{BlockNumber: 1, TxHash: common.HexToHash("0x2"), LogIndex: 0},
)

assert.Equal(t, 1, buf.enqueuedBlocks[2])
assert.Equal(t, 1, buf.enqueuedBlocks[1])
assert.Equal(t, 1, buf.enqueuedBlocks[2]["1"])
assert.Equal(t, 1, buf.enqueuedBlocks[1]["2"])
assert.True(t, true, logReceived)
})

Expand Down Expand Up @@ -135,9 +135,9 @@ func TestLogEventBufferV1_Enqueueviolations(t *testing.T) {
logpoller.Log{BlockNumber: 3, TxHash: common.HexToHash("0x3b"), LogIndex: 0},
)

assert.Equal(t, 1, buf.enqueuedBlocks[2])
assert.Equal(t, 1, buf.enqueuedBlocks[1])
assert.Equal(t, 2, buf.enqueuedBlocks[3])
assert.Equal(t, 1, buf.enqueuedBlocks[2]["2"])
assert.Equal(t, 1, buf.enqueuedBlocks[1]["1"])
assert.Equal(t, 2, buf.enqueuedBlocks[3]["3"])
assert.True(t, true, logReceived)
})
}
Expand Down

0 comments on commit f6a8162

Please sign in to comment.