浏览代码

consensus/ethash: increase seal timeout for tests (#22162)

It seems that the 2 second timeout is not enough for Travis CI:

   --- FAIL: TestTestMode (2.00s)
       ethash_test.go:53: sealing result timeout
Marius van der Wijden 4 年之前
父节点
当前提交
2aaff0ad76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      consensus/ethash/ethash_test.go

+ 1 - 1
consensus/ethash/ethash_test.go

@@ -49,7 +49,7 @@ func TestTestMode(t *testing.T) {
 		if err := ethash.VerifySeal(nil, header); err != nil {
 			t.Fatalf("unexpected verification error: %v", err)
 		}
-	case <-time.NewTimer(2 * time.Second).C:
+	case <-time.NewTimer(4 * time.Second).C:
 		t.Error("sealing result timeout")
 	}
 }