From 7723b91c06493a4d7f79aace0d6803084ec863ff Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Fri, 12 Jun 2015 14:53:55 -0700 Subject: [PATCH] pkg/fileutil: wait longer for relock multiple cpu running makes it slower, so it waits longer for relock. --- pkg/fileutil/lock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fileutil/lock_test.go b/pkg/fileutil/lock_test.go index 00225dd41..cda47deea 100644 --- a/pkg/fileutil/lock_test.go +++ b/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") } }