Skip to content

Commit 353d0d3

Browse files
committed
workaround timeout in unit test
1 parent 1e11b14 commit 353d0d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

miner/worker_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,10 @@ func testGenerateBlockAndImport(t *testing.T, isClique bool) {
259259
if _, err := chain.InsertChain([]*types.Block{block}); err != nil {
260260
t.Fatalf("failed to insert new mined block %d: %v", block.NumberU64(), err)
261261
}
262-
case <-time.After(3 * time.Second): // Worker needs 1s to include new changes.
262+
// TODO(gballet) the timeout had to be increased from 3s to 7s with verkle
263+
// trees, presumably because calculating an address is orders of magnitude
264+
// slower with perdersen_hash not using the multi-exponentiation.
265+
case <-time.After(7 * time.Second): // Worker needs 1s to include new changes.
263266
t.Fatalf("timeout")
264267
}
265268
}

0 commit comments

Comments
 (0)