From cd33c86e4bf533fb071b1aad37dd0405a2ad7128 Mon Sep 17 00:00:00 2001 From: Sri Kidambi <1702865+kidambisrinivas@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:42:53 +0100 Subject: [PATCH] Cleanup logpoller and headtracker after test --- core/services/relay/evm/capabilities/testutils/backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/services/relay/evm/capabilities/testutils/backend.go b/core/services/relay/evm/capabilities/testutils/backend.go index be8107c2973..ef5761b3e4c 100644 --- a/core/services/relay/evm/capabilities/testutils/backend.go +++ b/core/services/relay/evm/capabilities/testutils/backend.go @@ -100,6 +100,8 @@ func (th *EVMBackendTH) SetupCoreServices(t *testing.T) (logpoller.HeadTracker, ) require.NoError(t, ht.Start(testutils.Context(t))) require.NoError(t, lp.Start(testutils.Context(t))) + t.Cleanup(func() { ht.Close() }) + t.Cleanup(func() { lp.Close() }) return ht, lp }