Skip to content

Commit 22e3bbb

Browse files
gballetfjl
authored andcommitted
miner: increase worker test timeout (#20268)
TestEmptyWork* occasionally fails due to timeout. Increase the timeout.
1 parent 4ea9b62 commit 22e3bbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎miner/worker_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens
357357
for i := 0; i < 2; i += 1 {
358358
select {
359359
case <-taskCh:
360-
case <-time.NewTimer(4 * time.Second).C:
360+
case <-time.NewTimer(30 * time.Second).C:
361361
t.Error("new task timeout")
362362
}
363363
}

0 commit comments

Comments
 (0)