consensus/test: add missing t.Cleanup()
This commit is contained in:
parent
e6d3a60431
commit
798ae6c63c
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")
|
require.NoError(t, err, "could not create chain")
|
||||||
|
|
||||||
go chain.Run()
|
go chain.Run()
|
||||||
|
t.Cleanup(chain.Close)
|
||||||
return chain
|
return chain
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue