FedP2P/util/dirwatch/dirwatch_test.go

16 lines
253 B
Go
Raw Normal View History

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