Archived
Fix tests on Windows (fixes #1531)
This commit is contained in:
1 parent
c6300a5da8
commit
7d954dd5d1
4 files changed
+14
-3
No files matched your search
@@ -341,8 +341,8 @@ func TestWindowsPaths(t *testing.T) {
|
||||
folder.RawPath = `relative\path`
|
||||
expected = folder.RawPath
|
||||
actual = folder.Path()
|
||||
if actual != expected {
|
||||
t.Errorf("%q != %q", actual, expected)
|
||||
if actual == expected || !strings.HasPrefix(actual, "\\\\?\\") {
|
||||
t.Errorf("%q == %q, expected absolutification", actual, expected)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user