2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00

Merge pull request #2605 from middelink/fix-2604

Fix running tests on a SELinux enabled system
This commit is contained in:
Alexander Neumann 2020-03-01 20:25:28 +01:00 committed by GitHub
commit 52abec967f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2071,7 +2071,9 @@ func TestMetadataChanged(t *testing.T) {
// set some values so we can then compare the nodes // set some values so we can then compare the nodes
want.Content = node2.Content want.Content = node2.Content
want.Path = "" want.Path = ""
want.ExtendedAttributes = nil if len(want.ExtendedAttributes) == 0 {
want.ExtendedAttributes = nil
}
want.AccessTime = want.ModTime want.AccessTime = want.ModTime