Quellcode durchsuchen

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

pkg/fileutil: wait longer for relock
Xiang Li vor 10 Jahren
Ursprung
Commit
8e7fa9e201
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
 	// the previously blocked routine should be unblocked
 	select {
 	select {
 	case <-locked:
 	case <-locked:
-	case <-time.After(10 * time.Millisecond):
+	case <-time.After(20 * time.Millisecond):
 		t.Error("unexpected blocking")
 		t.Error("unexpected blocking")
 	}
 	}
 }
 }