Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readdcw: Fix unwatching at the same time as incoming event #126

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Use absolute path in test watchers
  • Loading branch information
imsodin committed Aug 27, 2017
commit 20d8975e669b5c3f225595b9a293bd15ec831bac
4 changes: 4 additions & 0 deletions testing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ func newWatcherTest(t *testing.T, tree string) *W {
if err != nil {
t.Fatalf(`tmptree("", %q)=%v`, tree, err)
}
root, _, err = cleanpath(root)
if err != nil {
t.Fatalf(`cleanpath(%q)=%v`, root, err)
}
Sync()
return &W{
t: t,
Expand Down