util/dirwatch: Some tidying

This commit is contained in:
Matt Joiner 2014-12-03 12:10:29 -06:00
parent 948de5629b
commit 51f5273ba9
2 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,8 @@ import (
"path/filepath"
"strings"
"bitbucket.org/anacrolix/go.torrent/util"
"bitbucket.org/anacrolix/go.torrent"
"bitbucket.org/anacrolix/go.torrent/util"
"github.com/anacrolix/libtorgo/metainfo"
"github.com/go-fsnotify/fsnotify"
)

View File

@ -12,9 +12,10 @@ func TestDirwatch(t *testing.T) {
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()
}