mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
backend: fix TestBackendClose by giving more time to wait for io
This commit is contained in:
parent
a4624666fe
commit
6cf4c4b3fd
@ -39,8 +39,8 @@ func TestBackendClose(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
case <-time.After(time.Second):
|
case <-time.After(10 * time.Second):
|
||||||
t.Errorf("failed to close database in 1s")
|
t.Errorf("failed to close database in 10s")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user