Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Dec 20, 2023
1 parent 5bbf1c7 commit ff8aeed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,12 @@ func testFileSystem(t *testing.T, s object.ObjectStorage) {
if target, err := ss.Readlink("a"); err != nil || target != "./xyz/ol1/" {
t.Fatalf("readlink a %s %s", target, err)
}
if err = ss.Symlink("./xyz/notExist/", "b"); err != nil {
if err = ss.Symlink("/xyz/notExist/", "b"); err != nil {
t.Fatalf("symlink b %s", err)
}
if target, err := ss.Readlink("b"); err != nil || target != "/xyz/notExist/" {
t.Fatalf("readlink b %s %s", target, err)
}
objs, err = listAll(s, "", "", 100)
if err != nil {
t.Fatalf("listall failed: %s", err)
Expand Down

0 comments on commit ff8aeed

Please sign in to comment.