Merge pull request #2373 from vrusinov/issue-2372

Ignore username difference in TestMetadataChanged
This commit is contained in:
rawtaz 2020-01-05 21:07:34 +01:00 committed by GitHub
commit d70a4a9350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2087,6 +2087,10 @@ func TestMetadataChanged(t *testing.T) {
// make another snapshot // make another snapshot
snapshotID, node3 := snapshot(t, repo, fs, snapshotID, "testfile") 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 // make sure that metadata was recorded successfully
if !cmp.Equal(want, node3) { if !cmp.Equal(want, node3) {