Skip to content

Commit

Permalink
Update logpoller_wrapper_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Feb 15, 2024
1 parent 3598fb9 commit 3794e2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/services/relay/evm/functions/logpoller_wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func getMockedRequestLog(t *testing.T) logpoller.Log {
func TestLogPollerWrapper_SingleSubscriberEmptyEvents(t *testing.T) {
t.Parallel()
lp, lpWrapper, client := setUp(t, 100_000) // check only once
lp.On("LatestBlock").Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)
lp.On("LatestBlock", mock.Anything).Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)

lp.On("Logs", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return([]logpoller.Log{}, nil)
client.On("CallContract", mock.Anything, mock.Anything, mock.Anything).Return(addr(t, "01"), nil)
Expand All @@ -106,7 +106,7 @@ func TestLogPollerWrapper_SingleSubscriberEmptyEvents(t *testing.T) {
func TestLogPollerWrapper_ErrorOnZeroAddresses(t *testing.T) {
t.Parallel()
lp, lpWrapper, client := setUp(t, 100_000) // check only once
lp.On("LatestBlock").Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)
lp.On("LatestBlock", mock.Anything).Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)

client.On("CallContract", mock.Anything, mock.Anything, mock.Anything).Return(addr(t, "00"), nil)

Expand All @@ -118,7 +118,7 @@ func TestLogPollerWrapper_ErrorOnZeroAddresses(t *testing.T) {
func TestLogPollerWrapper_LatestEvents_ReorgHandling(t *testing.T) {
t.Parallel()
lp, lpWrapper, client := setUp(t, 100_000)
lp.On("LatestBlock").Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)
lp.On("LatestBlock", mock.Anything).Return(logpoller.LogPollerBlock{BlockNumber: int64(100)}, nil)
client.On("CallContract", mock.Anything, mock.Anything, mock.Anything).Return(addr(t, "01"), nil)
lp.On("RegisterFilter", mock.Anything).Return(nil)
subscriber := newSubscriber(1)
Expand Down

0 comments on commit 3794e2f

Please sign in to comment.