torrent/util/dirwatch/dirwatch_test.go

16 lines
253 B
Go
Raw Permalink Normal View History

package dirwatch
import (
"testing"
2018-01-06 05:53:40 +00:00
"github.com/stretchr/testify/require"
)
func TestDirwatch(t *testing.T) {
tempDirName := t.TempDir()
2014-12-03 18:10:29 +00:00
t.Logf("tempdir: %q", tempDirName)
dw, err := New(tempDirName)
2018-01-06 05:53:40 +00:00
require.NoError(t, err)
2014-12-03 18:10:29 +00:00
defer dw.Close()
}