Skip to content

Commit

Permalink
Cleanup logpoller and headtracker after test
Browse files Browse the repository at this point in the history
  • Loading branch information
kidambisrinivas committed Sep 30, 2024
1 parent 7562bc1 commit 75064c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/services/relay/evm/capabilities/testutils/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 75064c3

Please sign in to comment.