consensus/test: add missing t.Cleanup()

This commit is contained in:
Evgeniy Stratonikov 2021-03-03 13:14:25 +03:00
parent e6d3a60431
commit 798ae6c63c

View file

@ -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
}