From: Chris Howey Date: Fri, 8 Jun 2012 00:06:20 +0000 (-0500) Subject: Remote watch on directory for attrib test so we don't get create for attrib file X-Git-Tag: v1.7.2~421 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=17f76610cefd26bc3fa51835560893c691630246;p=fsnotify.git Remote watch on directory for attrib test so we don't get create for attrib file --- diff --git a/fsnotify_test.go b/fsnotify_test.go index 979aa78..573ac6b 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -234,12 +234,6 @@ func TestFsnotifyAttrib(t *testing.T) { } defer os.RemoveAll(testDir) - // Add a watch for testDir - err = watcher.Watch(testDir) - if err != nil { - t.Fatalf("Watcher.Watch() failed: %s", err) - } - // Receive errors on the error channel on a separate goroutine go func() { for err := range watcher.Error { @@ -247,7 +241,7 @@ func TestFsnotifyAttrib(t *testing.T) { } }() - const testFile string = "_test/TestFsnotifyEvents.testfile" + const testFile string = "_test/TestFsnotifyAttrib.testfile" // Receive events on the event channel on a separate goroutine eventstream := watcher.Event