mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
consensus/ethash: increase timeout in test
This commit is contained in:
parent
1acefafe22
commit
672de17200
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ func TestRemoteNotify(t *testing.T) {
|
||||||
if want := common.BytesToHash(target.Bytes()).Hex(); work[2] != want {
|
if want := common.BytesToHash(target.Bytes()).Hex(); work[2] != want {
|
||||||
t.Errorf("work packet target mismatch: have %s, want %s", work[2], want)
|
t.Errorf("work packet target mismatch: have %s, want %s", work[2], want)
|
||||||
}
|
}
|
||||||
case <-time.After(time.Second):
|
case <-time.After(3 * time.Second):
|
||||||
t.Fatalf("notification timed out")
|
t.Fatalf("notification timed out")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -108,7 +108,7 @@ func TestRemoteMultiNotify(t *testing.T) {
|
||||||
for i := 0; i < cap(sink); i++ {
|
for i := 0; i < cap(sink); i++ {
|
||||||
select {
|
select {
|
||||||
case <-sink:
|
case <-sink:
|
||||||
case <-time.After(250 * time.Millisecond):
|
case <-time.After(3 * time.Second):
|
||||||
t.Fatalf("notification %d timed out", i)
|
t.Fatalf("notification %d timed out", i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue