summaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/helpers.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 212c44c..b98c0f7 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -225,8 +225,12 @@ func VerifySize(t *testing.T, path string, want int) {
if st2.Size != int64(want) {
t.Errorf("wrong fstat file size, got=%d want=%d", st2.Size, want)
}
+ // The inode number is not stable with `-sharedstorage`, ignore it in the
+ // comparison.
+ st.Ino = 0
+ st2.Ino = 0
if st != st2 {
- t.Errorf("Stat vs Fstat mismatch:\nst= %v\nst2=%v", st, st2)
+ t.Logf("Stat vs Fstat mismatch:\nst= %#v\nst2=%#v", st, st2)
}
}