Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Aug 19, 2024
1 parent f65b87a commit dfd45f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transfer/unixfs/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func TestRenameFile(t *testing.T) {
assert.Len(t, dir.Entries, 1)
assert.Equal(t, "file2.txt", dir.Entries[0].Name)

// Rename to an existing name (should replace)
// Rename to an existing name (not allowed)
err = dir.Add(&unixfs.FsNode{Name: "file3.txt", Type: unixfs.File, Size: 5678})
assert.NoError(t, err)
err = dir.Rename("file2.txt", "file3.txt")
Expand Down

0 comments on commit dfd45f3

Please sign in to comment.