diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-29 18:18:48 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-29 18:18:48 +0200 |
commit | 0204df69ff159269856cd4d5b5044d39ee022759 (patch) | |
tree | 07ab198ed1db901f63149cb15b57f2bf3698cc7a | |
parent | e78a65ca04492488fe68364e90c24615cdb39ff6 (diff) | |
download | dna-backup-0204df69ff159269856cd4d5b5044d39ee022759.tar.gz dna-backup-0204df69ff159269856cd4d5b5044d39ee022759.zip |
this time symlink test should be fixed for macos
-rw-r--r-- | repo_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repo_test.go b/repo_test.go index 82e8558..d4f5749 100644 --- a/repo_test.go +++ b/repo_test.go @@ -192,10 +192,10 @@ func TestSymlinks(t *testing.T) { if err = os.Symlink(extDir, filepath.Join(tmpDir, "linkexternal")); err != nil { t.Fatal(err) } - if err = os.Symlink("./notexisting", filepath.Join(tmpDir, "linknotexisting")); err != nil { + if err = os.Symlink(filepath.Join(tmpDir, "notexisting"), filepath.Join(tmpDir, "linknotexisting")); err != nil { t.Fatal(err) } - if err = os.Symlink("./existing", filepath.Join(tmpDir, "linkexisting")); err != nil { + if err = os.Symlink(filepath.Join(tmpDir, "existing"), filepath.Join(tmpDir, "linkexisting")); err != nil { t.Fatal(err) } files := listFiles(tmpDir) |