Skip to content

Commit f99591a

Browse files
add blockchain stop back
1 parent 6f63d49 commit f99591a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/blockchain_ext_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ func checkBlockChainState(
215215
newChainDataDir := copyFlatDir(t, oldChainDataDir)
216216
restartedChain, err := create(originalDB, gspec, lastAcceptedBlock.Hash(), newChainDataDir)
217217
require.NoError(err)
218+
defer restartedChain.Stop()
219+
218220
currentBlock := restartedChain.CurrentBlock()
219221
require.Equal(lastAcceptedBlock.Hash(), currentBlock.Hash(), "Restarted chain's current block does not match last accepted block")
220222
restartedLastAcceptedBlock := restartedChain.LastConsensusAcceptedBlock()

sync/statesync/code_syncer_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ func testCodeSyncer(t *testing.T, test codeSyncerTest) {
6161
codeSyncer.start(context.Background())
6262

6363
for _, codeHashes := range test.codeRequestHashes {
64-
err := codeSyncer.addCode(codeHashes)
65-
require.NoError(t, err)
64+
require.NoError(t, codeSyncer.addCode(codeHashes))
6665
}
6766
codeSyncer.notifyAccountTrieCompleted()
6867

0 commit comments

Comments
 (0)