From 9398f218290829577f0c34a67a1159645d9ad046 Mon Sep 17 00:00:00 2001 From: begmaroman Date: Thu, 20 Jun 2024 10:47:09 +0100 Subject: [PATCH] Fixed linter --- synchronizer/batches_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/synchronizer/batches_test.go b/synchronizer/batches_test.go index 4ab4716c..f48d6ba4 100644 --- a/synchronizer/batches_test.go +++ b/synchronizer/batches_test.go @@ -1,6 +1,7 @@ package synchronizer import ( + "context" "errors" "math/big" "strings" @@ -356,7 +357,7 @@ func TestBatchSynchronizer_HandleEvent(t *testing.T) { client: ethermanMock, } - err := batchSynronizer.handleEvent(event) + err := batchSynronizer.handleEvent(context.Background(), event) if config.isErrorExpected { require.Error(t, err) } else { @@ -624,7 +625,7 @@ func TestBatchSynchronizer_HandleUnresolvedBatches(t *testing.T) { sequencer: sequencerMock, } - err := batchSynronizer.handleUnresolvedBatches() + err := batchSynronizer.handleUnresolvedBatches(context.Background()) if config.isErrorExpected { require.Error(t, err) } else { @@ -868,7 +869,7 @@ func TestBatchSyncronizer_HandleReorgs(t *testing.T) { reorgs: reorgChan, } - go batchSynchronizer.handleReorgs() + go batchSynchronizer.handleReorgs(context.Background()) reorgChan <- config.reorg