Skip to content

Commit

Permalink
Remote watch on directory for attrib test so we don't get create for …
Browse files Browse the repository at this point in the history
…attrib file
  • Loading branch information
howeyc committed Jun 8, 2012
1 parent 10a6a85 commit 17f7661
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions fsnotify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,14 @@ 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 {
t.Fatalf("error received: %s", err)
}
}()

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
Expand Down

0 comments on commit 17f7661

Please sign in to comment.