mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2976 from yichengq/fix-lock-test
pkg/fileutil: wait longer for relock
This commit is contained in:
commit
8e7fa9e201
@ -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