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.
This commit is contained in:
Emil Hessman 2015-01-27 07:52:48 +01:00
parent c49ae2baa0
commit 160e4f926e
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}