FedP2P/util/dirwatch/dirwatch_test.go

16 lines
253 B
Go

package dirwatch
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDirwatch(t *testing.T) {
tempDirName := t.TempDir()
t.Logf("tempdir: %q", tempDirName)
dw, err := New(tempDirName)
require.NoError(t, err)
defer dw.Close()
}