les, miner, accounts/abi/bind: fix load-sensitive unit tests (#20698)

This commit is contained in:
gary rong
2020-02-20 20:05:54 +08:00
committed by GitHub
parent 6df973df27
commit 2e1ecc02bd
3 changed files with 13 additions and 7 deletions

View File

@ -1384,7 +1384,7 @@ var bindTests = []struct {
if n != 3 {
t.Fatalf("Invalid bar0 event")
}
case <-time.NewTimer(100 * time.Millisecond).C:
case <-time.NewTimer(3 * time.Second).C:
t.Fatalf("Wait bar0 event timeout")
}
@ -1395,7 +1395,7 @@ var bindTests = []struct {
if n != 1 {
t.Fatalf("Invalid bar event")
}
case <-time.NewTimer(100 * time.Millisecond).C:
case <-time.NewTimer(3 * time.Second).C:
t.Fatalf("Wait bar event timeout")
}
close(stopCh)