From 1a1f89459ad91bb65802f1045b377402dee33361 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Sun, 26 May 2013 08:52:43 -0500 Subject: [PATCH] Fix a couple tests --- fsnotify_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsnotify_test.go b/fsnotify_test.go index ad41812..3932e12 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -281,7 +281,7 @@ func TestFsnotifyMultipleCreates(t *testing.T) { t.Fatalf("incorrect number of create events received after 500 ms (%d vs %d)", cReceived, 2) } mReceived := modifyReceived.value() - if mReceived != 3 { + if mReceived < 3 { t.Fatalf("incorrect number of modify events received after 500 ms (%d vs atleast %d)", mReceived, 3) } dReceived := deleteReceived.value() @@ -564,6 +564,8 @@ func TestFsnotifySubDir(t *testing.T) { fs.Sync() fs.Close() + time.Sleep(200 * time.Millisecond) + // Make sure receive deletes for both file and sub-directory os.RemoveAll(testSubDir) os.Remove(testFile1) -- 2.50.1