mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00: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:
parent
2f8d94fe4b
commit
34de45c435
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue