File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/scala/io/iohk/ethereum/blockchain/sync/regular Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ class RegularSyncSpec
8686 def sync [T <: Fixture ](test : => T ): Future [Assertion ] =
8787 Future {
8888 test
89+ // this makes sure that actors are all done after the test (believe me, afterEach does not work with mocks)
90+ TestKit .shutdownActorSystem(testSystem)
8991 succeed
9092 }
9193
@@ -474,7 +476,7 @@ class RegularSyncSpec
474476 peersClient.setAutoPilot(new PeersClientAutoPilot )
475477 override lazy val branchResolution : BranchResolution = stub[BranchResolution ]
476478 (blockchainReader.getBestBlockNumber _).when().returns(0 )
477- (branchResolution.resolveBranch _).when(* ).returns(NewBetterBranch (Nil )).repeat( 10 )
479+ (branchResolution.resolveBranch _).when(* ).returns(NewBetterBranch (Nil )).atLeastOnce( )
478480 (blockImport
479481 .importBlock(_ : Block )(_ : Scheduler ))
480482 .when(* , * )
You can’t perform that action at this time.
0 commit comments