util/dirwatch: Some tidying
This commit is contained in:
parent
948de5629b
commit
51f5273ba9
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue