From: Chris Howey Date: Wed, 19 Oct 2011 23:23:58 +0000 (-0700) Subject: BSD Test: Change placement of watch for attrib X-Git-Tag: v1.7.2~454 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=f58c4a691c8a5a057143786881786ff1e7135af1;p=fsnotify.git BSD Test: Change placement of watch for attrib --- 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 {