Просмотр исходного кода

miner: increase worker test timeout (#20268)

TestEmptyWork* occasionally fails due to timeout. Increase the timeout.
Guillaume Ballet 6 лет назад
Родитель
Сommit
22e3bbbf0a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      miner/worker_test.go

+ 1 - 1
miner/worker_test.go

@@ -357,7 +357,7 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens
 	for i := 0; i < 2; i += 1 {
 		select {
 		case <-taskCh:
-		case <-time.NewTimer(4 * time.Second).C:
+		case <-time.NewTimer(30 * time.Second).C:
 			t.Error("new task timeout")
 		}
 	}