فهرست منبع

pkg/fileutil: wait longer for relock

multiple cpu running makes it slower, so it waits longer for relock.
Yicheng Qin 11 سال پیش
والد
کامیت
7723b91c06
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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")
 	}
 }