Merge pull request #1801 from nspcc-dev/fix/testrace

consensus/test: add missing `t.Cleanup()`
This commit is contained in:
Roman Khimov 2021-03-03 13:29:20 +03:00 committed by GitHub
commit 4a9ca253d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}