2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-24 21:57:41 +00:00

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
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) {