mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-30 05:12:54 +00:00
miner: increase worker test timeout (#20268)
TestEmptyWork* occasionally fails due to timeout. Increase the timeout.
This commit is contained in:
parent
4ea9b62b5c
commit
22e3bbbf0a
1 changed files with 1 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens
|
||||||
for i := 0; i < 2; i += 1 {
|
for i := 0; i < 2; i += 1 {
|
||||||
select {
|
select {
|
||||||
case <-taskCh:
|
case <-taskCh:
|
||||||
case <-time.NewTimer(4 * time.Second).C:
|
case <-time.NewTimer(30 * time.Second).C:
|
||||||
t.Error("new task timeout")
|
t.Error("new task timeout")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue