restic: refactor node test

This commit is contained in:
Michael Eischer 2023-07-08 18:49:47 +02:00
parent cc84884d2e
commit ea9ad77e05
1 changed files with 51 additions and 49 deletions

View File

@ -198,6 +198,7 @@ func TestNodeRestoreAt(t *testing.T) {
tempdir := t.TempDir()
for _, test := range nodeTests {
t.Run("", func(t *testing.T) {
var nodePath string
if test.ExtendedAttributes != nil {
if runtime.GOOS == "windows" {
@ -255,6 +256,7 @@ func TestNodeRestoreAt(t *testing.T) {
}
rtest.Assert(t, reflect.DeepEqual(test.ExtendedAttributes, n2.ExtendedAttributes),
"%v: xattrs don't match (%v != %v)", test.Name, test.ExtendedAttributes, n2.ExtendedAttributes)
})
}
}