From 353d0d389cbd0721c7d059d5f00a7ca77013802a Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Wed, 22 Dec 2021 11:03:23 +0100 Subject: [PATCH] workaround timeout in unit test --- miner/worker_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miner/worker_test.go b/miner/worker_test.go index c8ddd2c320..6753e7895b 100644 --- a/miner/worker_test.go +++ b/miner/worker_test.go @@ -259,7 +259,10 @@ func testGenerateBlockAndImport(t *testing.T, isClique bool) { if _, err := chain.InsertChain([]*types.Block{block}); err != nil { t.Fatalf("failed to insert new mined block %d: %v", block.NumberU64(), err) } - case <-time.After(3 * time.Second): // Worker needs 1s to include new changes. + // TODO(gballet) the timeout had to be increased from 3s to 7s with verkle + // trees, presumably because calculating an address is orders of magnitude + // slower with perdersen_hash not using the multi-exponentiation. + case <-time.After(7 * time.Second): // Worker needs 1s to include new changes. t.Fatalf("timeout") } }