bug: test fails when running on windows due to path formatting
Closed this issue · 1 comments
ludfjig commented
Describe the bug
Path formatting on windows (backslash vs forwardslash) does not match expected linux format so many test fail
--- FAIL: TestStoreRelocationMapping (0.00s)
--- FAIL: TestStoreRelocationMapping/relocation_file_gets_a_path (0.00s)
cache_test.go:182:
Error Trace: C:/Users/lliljenberg/dev/porter/pkg/cache/cache_test.go:182
Error: Not equal:
expected: "C:\\Users\\lliljenberg/.porter/cache/887e7e65e39277f8744bd00278760b06/cnab/relocation-mapping.json"
actual : "C:\\Users\\lliljenberg\\.porter\\cache\\887e7e65e39277f8744bd00278760b06\\cnab\\relocation-mapping.json"
To Reproduce
Run mage testunit
Expected behavior
No errors
Version
Copy the output of porter version
below
porter v1.0.15 (be5c66a)
ludfjig commented