mirror of
https://github.com/golang/go
synced 2024-11-21 23:14:40 -07:00
exp/winfsnotify: fix govet-found bug
R=golang-dev, hectorchu CC=golang-dev https://golang.org/cl/5304044
This commit is contained in:
parent
3e52dadfd7
commit
28c06182c0
@ -40,7 +40,7 @@ func TestNotifyEvents(t *testing.T) {
|
|||||||
// Add a watch for testDir
|
// Add a watch for testDir
|
||||||
os.RemoveAll(testDir)
|
os.RemoveAll(testDir)
|
||||||
if err = os.Mkdir(testDir, 0777); err != nil {
|
if err = os.Mkdir(testDir, 0777); err != nil {
|
||||||
t.Fatalf("Failed to create test directory", err)
|
t.Fatalf("Failed to create test directory: %s", err)
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(testDir)
|
defer os.RemoveAll(testDir)
|
||||||
err = watcher.AddWatch(testDir, mask)
|
err = watcher.AddWatch(testDir, mask)
|
||||||
|
Loading…
Reference in New Issue
Block a user