Browse Source

pkg/fileutil: wait longer for relock

multiple cpu running makes it slower, so it waits longer for relock.
Yicheng Qin 10 years ago
parent
commit
7723b91c06
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")
 	}
 }