From 798ae6c63cc3f2bbb37bc2c410d91c14a5f582a5 Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Wed, 3 Mar 2021 13:14:25 +0300 Subject: [PATCH] consensus/test: add missing `t.Cleanup()` --- pkg/consensus/consensus_test.go | 1 + 1 file changed, 1 insertion(+) 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 }