diff options
Diffstat (limited to 'integration_tests/main_test.go')
-rw-r--r-- | integration_tests/main_test.go | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go index 953c552..398a9d4 100644 --- a/integration_tests/main_test.go +++ b/integration_tests/main_test.go @@ -12,7 +12,6 @@ import ( "os" "runtime" "sync" - "syscall" "testing" ) @@ -314,25 +313,10 @@ func TestFilenameEncryption(t *testing.T) { // Test Mkdir and Rmdir func TestMkdirRmdir(t *testing.T) { - dir := defaultPlainDir + "dir1" - err := os.Mkdir(dir, 0777) - if err != nil { - t.Fatal(err) - } - err = syscall.Rmdir(dir) - if err != nil { - t.Fatal(err) - } + testMkdirRmdir(t, defaultPlainDir) } // Test Rename func TestRename(t *testing.T) { - err := ioutil.WriteFile(defaultPlainDir+"rename1", []byte("content"), 0777) - if err != nil { - t.Fatal(err) - } - err = syscall.Rename(defaultPlainDir+"rename1", defaultPlainDir+"rename2") - if err != nil { - t.Fatal(err) - } + testRename(t, defaultPlainDir) } |