diff options
Diffstat (limited to 'repo_test.go')
-rw-r--r-- | repo_test.go | 11 |
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) { |