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 = ""
if len(want.ExtendedAttributes) == 0 {
want.ExtendedAttributes = nil want.ExtendedAttributes = nil
}
want.AccessTime = want.ModTime want.AccessTime = want.ModTime