1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 17:27:25 +00:00

Merge pull request #2465 from whs-dot-hk/fix-test-metadata-changed

Fix test metadata changed
This commit is contained in:
rawtaz 2019-11-26 21:42:42 +01:00 committed by GitHub
commit 6e85a58045
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2064,6 +2064,8 @@ func TestMetadataChanged(t *testing.T) {
want.Path = "" want.Path = ""
want.ExtendedAttributes = nil want.ExtendedAttributes = nil
want.AccessTime = want.ModTime
// make sure that metadata was recorded successfully // make sure that metadata was recorded successfully
if !cmp.Equal(want, node2) { if !cmp.Equal(want, node2) {
t.Fatalf("metadata does not match:\n%v", cmp.Diff(want, node2)) t.Fatalf("metadata does not match:\n%v", cmp.Diff(want, node2))