From: Simon Ruderich Date: Sun, 9 May 2021 10:14:16 +0000 (+0200) Subject: sync: tests: use CreateDirectoryExists() X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=006a69a50239a27ba7929c513897ef19259e06af;p=safcm%2Fsafcm.git sync: tests: use CreateDirectoryExists() --- diff --git a/cmd/safcm-remote/sync/files_test.go b/cmd/safcm-remote/sync/files_test.go index 5787404..2e3ed3e 100644 --- a/cmd/safcm-remote/sync/files_test.go +++ b/cmd/safcm-remote/sync/files_test.go @@ -415,10 +415,7 @@ func TestSyncFiles(t *testing.T) { }, }, func() { - err = os.Chmod(".", 0750) - if err != nil { - panic(err) - } + ft.CreateDirectoryExists(".", 0750) ft.CreateDirectory("dir", 0755) ft.CreateFile("dir/file", "content\n", 0644) },