mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: use time.After
This commit is contained in:
parent
51881bf76f
commit
8af579824c
1 changed files with 2 additions and 2 deletions
|
|
@ -542,8 +542,8 @@ func newClientServerEnv(t *testing.T, blocks int, protocol int, callback indexer
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
case <-time.NewTimer(time.Second * 3).C:
|
case <-time.After(3 * time.Second):
|
||||||
t.Fatal("Timeout")
|
t.Fatal("test peer did not connect and sync within 3s")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s := &testServer{
|
s := &testServer{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue