mirror of
https://github.com/restic/restic.git
synced 2026-11-23 23:12:52 +00:00
Fix walk tree test for windows
This commit is contained in:
1 parent
5a45d95b80
commit
5958dc920b
1 file changed
+3
-1
+3
-1
@@ -3,6 +3,7 @@ package restic_test
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -1355,7 +1356,8 @@ func TestDelayedWalkTree(t *testing.T) {
|
|||||||
|
|
||||||
i := 0
|
i := 0
|
||||||
for job := range treeJobs {
|
for job := range treeJobs {
|
||||||
if job.Path != walktreeTestItems[i] {
|
expectedPath := filepath.Join(strings.Split(walktreeTestItems[i], "/")...)
|
||||||
|
if job.Path != expectedPath {
|
||||||
t.Fatalf("expected path %q (%v), got %q", walktreeTestItems[i], i, job.Path)
|
t.Fatalf("expected path %q (%v), got %q", walktreeTestItems[i], i, job.Path)
|
||||||
}
|
}
|
||||||
i++
|
i++
|
||||||
|
|||||||
Reference in new issue
Block a user