mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
Merge pull request #1801 from nspcc-dev/fix/testrace
consensus/test: add missing `t.Cleanup()`
This commit is contained in:
commit
4a9ca253d3
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue