Browse Source

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

pkg/fileutil: wait longer for relock
Xiang Li 10 years ago
parent
commit
8e7fa9e201
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/fileutil/lock_test.go

+ 1 - 1
pkg/fileutil/lock_test.go

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