diff --git a/pkg/consensus/consensus_test.go b/pkg/consensus/consensus_test.go index 7c08940e4..09601e991 100644 --- a/pkg/consensus/consensus_test.go +++ b/pkg/consensus/consensus_test.go @@ -494,6 +494,7 @@ func newSingleTestChain(t *testing.T) *core.Blockchain { require.NoError(t, err, "could not create chain") go chain.Run() + t.Cleanup(chain.Close) return chain }