From 484be3d190f5bb224ac50e2703179b2699bac0ec Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 26 Aug 2020 22:19:57 +0300 Subject: remove path separators in watcher_test --- service/reload/watcher_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'service/reload/watcher_test.go') diff --git a/service/reload/watcher_test.go b/service/reload/watcher_test.go index 391f6bb9..9683d2de 100644 --- a/service/reload/watcher_test.go +++ b/service/reload/watcher_test.go @@ -246,7 +246,7 @@ func Test_Recursive_Support(t *testing.T) { } }() - nestedDir, err := ioutil.TempDir(tempDir, "/nested") + nestedDir, err := ioutil.TempDir(tempDir, "nested") if err != nil { t.Fatal(err) } @@ -368,7 +368,7 @@ func Test_Filter_Directory(t *testing.T) { go limitTime(time.Second*10, t.Name(), c) - nestedDir, err := ioutil.TempDir(tempDir, "/nested") + nestedDir, err := ioutil.TempDir(tempDir, "nested") if err != nil { t.Fatal(err) } @@ -470,7 +470,7 @@ func Test_Copy_Directory(t *testing.T) { c <- struct{}{} }() - nestedDir, err := ioutil.TempDir(tempDir, "/nested") + nestedDir, err := ioutil.TempDir(tempDir, "nested") if err != nil { t.Fatal(err) } @@ -535,7 +535,7 @@ func Test_Copy_Directory(t *testing.T) { go func() { go func() { - err2 := copyDir(nestedDir, filepath.Join(tempDir, "/copyTo")) + err2 := copyDir(nestedDir, filepath.Join(tempDir, "copyTo")) if err2 != nil { panic(err2) } -- cgit v1.2.3