util/dirwatch/dirwatch.go | 3 +-- util/dirwatch/dirwatch_test.go | 3 ++- diff --git a/util/dirwatch/dirwatch.go b/util/dirwatch/dirwatch.go index b01e56302a53a73baaf40623f9c787593aaae0ec..cbe2026a8297bd6ca0392bb2c5e7ce34c4dbea22 100644 --- a/util/dirwatch/dirwatch.go +++ b/util/dirwatch/dirwatch.go @@ -9,9 +9,8 @@ "os" "path/filepath" "strings" + "bitbucket.org/anacrolix/go.torrent" "bitbucket.org/anacrolix/go.torrent/util" - - "bitbucket.org/anacrolix/go.torrent" "github.com/anacrolix/libtorgo/metainfo" "github.com/go-fsnotify/fsnotify" ) diff --git a/util/dirwatch/dirwatch_test.go b/util/dirwatch/dirwatch_test.go index 7a975702fa652ba1167345f2b7931e38e72c486f..40d68ff7730b990c64d0c0bee5e2aa87bf076614 100644 --- a/util/dirwatch/dirwatch_test.go +++ b/util/dirwatch/dirwatch_test.go @@ -12,9 +12,10 @@ if err != nil { t.Fatal(err) } defer os.RemoveAll(tempDirName) + t.Logf("tempdir: %q", tempDirName) dw, err := New(tempDirName) + defer dw.Close() if err != nil { t.Fatal(err) } - dw.Close() }