Merge pull request #2976 from yichengq/fix-lock-test

pkg/fileutil: wait longer for relock
This commit is contained in:
Xiang Li 2015-06-12 15:20:18 -07:00
commit 8e7fa9e201

View File

@ -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")
}
}