From f58c4a691c8a5a057143786881786ff1e7135af1 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Wed, 19 Oct 2011 16:23:58 -0700 Subject: [PATCH] BSD Test: Change placement of watch for attrib --- fsnotify_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fsnotify_test.go b/fsnotify_test.go index 89554f9..4759b8b 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -308,16 +308,16 @@ func TestFsnotifyAttrib(t *testing.T) { } f.Sync() + f.WriteString("data") + f.Sync() + f.Close() + // Add a watch for testFile err = watcher.Watch(testFile) if err != nil { t.Fatalf("Watcher.Watch() failed: %s", err) } - f.WriteString("data") - f.Sync() - f.Close() - cmd := exec.Command("chmod", "0700", testFile) err = cmd.Run() if err != nil { -- 2.50.1