aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-30 11:42:33 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-30 11:42:33 +0200
commit69294759ea36c8395a956e418820b236be7fd875 (patch)
treebaaeeb02cbd0f7c8ab5b621a595782f310c54e1c /repo_test.go
parentfd9e3e1092637c1f18189d52fb802cf2985d918b (diff)
downloaddna-backup-69294759ea36c8395a956e418820b236be7fd875.tar.gz
dna-backup-69294759ea36c8395a956e418820b236be7fd875.zip
properly manage relative symlinks will CI pass ??
Diffstat (limited to 'repo_test.go')
-rw-r--r--repo_test.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/repo_test.go b/repo_test.go
index 5a0abea..fda61f5 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -203,19 +203,16 @@ func TestSymlinks(t *testing.T) {
}
files := listFiles(tmpDir)
fmt.Println(files)
- testutils.AssertLen(t, 2, files, "Files")
+ testutils.AssertLen(t, 3, files, "Files")
if files[0].Link != "" {
- t.Error("linkexisting should not be a link, actual:", files[0].Link)
+ t.Error("existing should not be a link, actual:", files[0].Link)
}
- if files[1].Link != "existing" {
- t.Error("linkexisting should point to 'existing', actual:", files[1].Link)
+ if files[1].Link != "/existing" {
+ t.Error("linkexisting should point to '/existing', actual:", files[1].Link)
}
if !strings.Contains(output.String(), "linkexternal") {
t.Errorf("log should contain a warning for linkexternal, actual %q", &output)
}
- if !strings.Contains(output.String(), "notexisting") {
- t.Errorf("log should contain a warning for notexisting, actual %q", &output)
- }
}
func TestLoadChunks(t *testing.T) {