2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-21 10:12:22 +00:00

restic: refactor node test

This commit is contained in:
Michael Eischer 2023-07-08 18:49:47 +02:00
parent cc84884d2e
commit ea9ad77e05

View File

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