From a6bc26f06252df2375c77fc50ef5721c889c8418 Mon Sep 17 00:00:00 2001 From: joanestebanr <129153821+joanestebanr@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:12:58 +0100 Subject: [PATCH] feat: increase coverage --- aggsender/aggsender_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aggsender/aggsender_test.go b/aggsender/aggsender_test.go index 35f1a640..bf0d5676 100644 --- a/aggsender/aggsender_test.go +++ b/aggsender/aggsender_test.go @@ -285,6 +285,7 @@ func TestAggSendersendCertificates(t *testing.T) { epochNotifierMock := mocks.NewEpochNotifier(t) bridgeL2SyncerMock := mocks.NewL2BridgeSyncer(t) ctx, cancel := context.WithCancel(context.Background()) + defer cancel() aggSender, err := New( ctx, log.WithFields("test", "unittest"), @@ -305,8 +306,6 @@ func TestAggSendersendCertificates(t *testing.T) { Epoch: 1, } time.Sleep(100 * time.Millisecond) - cancel() - } //nolint:dupl