From 5958dc920b0e19b8abce55bd41e607ff2165cc26 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 28 Oct 2015 22:02:37 +0100 Subject: [PATCH] Fix walk tree test for windows --- walk_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/walk_test.go b/walk_test.go index 9bca71b0d..43cb9c24d 100644 --- a/walk_test.go +++ b/walk_test.go @@ -3,6 +3,7 @@ package restic_test import ( "os" "path/filepath" + "strings" "testing" "time" @@ -1355,7 +1356,8 @@ func TestDelayedWalkTree(t *testing.T) { i := 0 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) } i++