1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:54:39 -07:00

exp/winfsnotify: remove reference to _test

Updates #2573.

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5677063
This commit is contained in:
Rob Pike 2012-02-16 15:34:27 +11:00
parent 2f8d94fe4b
commit 34de45c435

View File

@ -115,7 +115,13 @@ func TestNotifyClose(t *testing.T) {
t.Fatal("double Close() test failed: second Close() call didn't return")
}
err := watcher.Watch("_test")
dir, err := ioutil.TempDir("", "wininotify")
if err != nil {
t.Fatalf("TempDir failed: %s", err)
}
defer os.RemoveAll(dir)
err = watcher.Watch(dir)
if err == nil {
t.Fatal("expected error on Watch() after Close(), got nil")
}