Skip to content

Commit

Permalink
fix: unit-test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Oct 21, 2021
1 parent 100db07 commit 73fbc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/blockchain_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ func TestFreezeDiffLayer(t *testing.T) {
defer fullBackend.close()
// Minus one empty block.
if fullBackend.chain.diffQueue.Size() != blockNum-1 {
t.Errorf("size of diff queue is wrong, expected: %d, get: %d", blockNum, fullBackend.chain.diffQueue.Size())
t.Errorf("size of diff queue is wrong, expected: %d, get: %d", blockNum-1, fullBackend.chain.diffQueue.Size())
}

time.Sleep(diffLayerFreezerRecheckInterval + 1*time.Second)
if fullBackend.chain.diffQueue.Size() != int(fullBackend.chain.triesInMemory) {
t.Errorf("size of diff queue is wrong, expected: %d, get: %d", blockNum, fullBackend.chain.diffQueue.Size())
Expand Down

0 comments on commit 73fbc85

Please sign in to comment.