]> go.fuhry.dev Git - fsnotify.git/commitdiff
Remote watch on directory for attrib test so we don't get create for attrib file
authorChris Howey <chris@howey.me>
Fri, 8 Jun 2012 00:06:20 +0000 (19:06 -0500)
committerChris Howey <chris@howey.me>
Fri, 8 Jun 2012 00:06:20 +0000 (19:06 -0500)
fsnotify_test.go

index 979aa78485413170d056d2d73a88ebd783cf9362..573ac6b2baf122e2eaedb5dbe527ca0cb84e06c0 100644 (file)
@@ -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