forked from TrueCloudLab/restic
Merge pull request #2373 from vrusinov/issue-2372
Ignore username difference in TestMetadataChanged
This commit is contained in:
commit
d70a4a9350
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue