From 160e4f926e8656737f99927c41b106040e01d24b Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Tue, 27 Jan 2015 07:52:48 +0100 Subject: [PATCH] config/module: fix panic on Windows when running tests On Windows, Go returns paths with the `\` path separator. Make sure we are using `/` even on Windows since URLs are `/`-based. --- config/module/module_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/module/module_test.go b/config/module/module_test.go index bd72f08629..c63fa02012 100644 --- a/config/module/module_test.go +++ b/config/module/module_test.go @@ -42,7 +42,7 @@ func testModule(n string) string { var url url.URL url.Scheme = "file" - url.Path = p + url.Path = filepath.ToSlash(p) return url.String() }