Skip to content

Commit

Permalink
fix issue in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
millken committed Jul 14, 2022
1 parent 4383fb5 commit f94a64a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blockchain/integrity/integrity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,10 @@ func TestLoadBlockchainfromDB(t *testing.T) {
require.NoError(addTestingTsfBlocks(cfg, bc, dao, ap))
//make sure pubsub is completed
err = testutil.WaitUntil(200*time.Millisecond, 3*time.Second, func() (bool, error) {
err = bc.Stop(ctx)
return err == nil, err
return 24 == ms.Counter(), nil
})
require.NoError(err)
require.Equal(24, ms.Counter())
require.NoError(bc.Stop(ctx))

// Load a blockchain from DB
bc = blockchain.NewBlockchain(
Expand Down

0 comments on commit f94a64a

Please sign in to comment.