diff --git a/internal/archiver/archiver_test.go b/internal/archiver/archiver_test.go index 3335d3cbb..596d1ecc5 100644 --- a/internal/archiver/archiver_test.go +++ b/internal/archiver/archiver_test.go @@ -2085,6 +2085,10 @@ func TestMetadataChanged(t *testing.T) { // make another snapshot snapshotID, node3 := snapshot(t, repo, fs, snapshotID, "testfile") + // Override username and group to empty string - in case underlying system has user with UID 51234 + // See https://github.com/restic/restic/issues/2372 + node3.User = "" + node3.Group = "" // make sure that metadata was recorded successfully if !cmp.Equal(want, node3) {