mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/fileutil: wait longer for relock
multiple cpu running makes it slower, so it waits longer for relock.
This commit is contained in:
parent
ea3c7d1d31
commit
7723b91c06
@ -90,7 +90,7 @@ func TestLockAndUnlock(t *testing.T) {
|
||||
// the previously blocked routine should be unblocked
|
||||
select {
|
||||
case <-locked:
|
||||
case <-time.After(10 * time.Millisecond):
|
||||
case <-time.After(20 * time.Millisecond):
|
||||
t.Error("unexpected blocking")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user