Skip to content

Commit

Permalink
Update log_poller_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Feb 15, 2024
1 parent 3794e2f commit 99eb21c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/chains/evm/logpoller/log_poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,12 +1205,11 @@ func TestLogPoller_GetBlocks_Range(t *testing.T) {
require.Error(t, err)
assert.Contains(t, err.Error(), "context canceled")

// test still works when qopts is cancelled
// but context object is not
// test canceled ctx
ctx, cancel = context.WithCancel(testutils.Context(t))
cancel()
_, err = th.LogPoller.GetBlocksRange(ctx, blockNums)
require.NoError(t, err)
require.Equal(t, err, context.Canceled)
}

func TestGetReplayFromBlock(t *testing.T) {
Expand Down

0 comments on commit 99eb21c

Please sign in to comment.