udpate tests
Former-commit-id: 22c038ed1ec6884beb0014c3d2f43d651ac39d76 [formerly f29807633991846543a14b0bf6b15427fed38032] [formerly 84f850fb5ff61b07c1dae7f745ab0e86666c576b [formerly e630e0a8ed
]]
Former-commit-id: a050dfcd0c0dd725569d6ebf79c2847c3bf9e1f5 [formerly e2efb9fc98bc3c5cf34800a48e60b2c47ec18231]
Former-commit-id: 5662e73719186f0e0ab187c636367dff265586ae
pull/726/head
parent
149465ab52
commit
f4d2989acd
|
@ -6,7 +6,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/net/webdav"
|
||||
"github.com/hacdias/filemanager/dir"
|
||||
)
|
||||
|
||||
type test struct {
|
||||
|
@ -28,13 +28,13 @@ func newTest(t *testing.T) *test {
|
|||
scope := filepath.Join(temp, "scope")
|
||||
database := filepath.Join(temp, "database.db")
|
||||
|
||||
err = copyDir("./testdata", scope)
|
||||
err = dir.CopyDir("./testdata", scope)
|
||||
if err != nil {
|
||||
t.Fatalf("Error copying the test data: %v", err)
|
||||
}
|
||||
|
||||
user := DefaultUser
|
||||
user.FileSystem = webdav.Dir(scope)
|
||||
user.FileSystem = dir.Dir(scope)
|
||||
|
||||
fm, err := New(database, user)
|
||||
|
||||
|
|
Loading…
Reference in New Issue