From 17f76610cefd26bc3fa51835560893c691630246 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Thu, 7 Jun 2012 19:06:20 -0500 Subject: [PATCH] Remote watch on directory for attrib test so we don't get create for attrib file --- fsnotify_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.50.1