aboutsummaryrefslogtreecommitdiff
path: root/object/tree
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-13 16:34:13 +0000
committerGravatar Runxi Yu2026-06-13 16:34:13 +0000
commitba18c0f8b6a39508d06e2cb6bcbf2790c7d83c34 (patch)
treedc9afb15d0cf0612af122b536da2dfc226b29e2f /object/tree
parentdeps: Update lgo checksum (diff)
object/tree: Fix tests again
Diffstat (limited to 'object/tree')
-rw-r--r--object/tree/roundtrip_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/tree/roundtrip_test.go b/object/tree/roundtrip_test.go
index 3e82c79a..a9d5f40f 100644
--- a/object/tree/roundtrip_test.go
+++ b/object/tree/roundtrip_test.go
@@ -70,7 +70,7 @@ func assertEntriesEqual(t *testing.T, got []tree.Entry, want []tree.Entry) {
t.Fatalf("entry[%d] mode = %o, want %o", i, got[i].Mode, want[i].Mode)
}
- if got[i].Name != want[i].Name {
+ if !bytes.Equal(got[i].Name, want[i].Name) {
t.Fatalf("entry[%d] name = %q, want %q", i, got[i].Name, want[i].Name)
}