Skip to content

test(helpers): match candidates path with native separator - #463

Merged
marc0der merged 1 commit into
masterfrom
fix/windows-path-separator-test
Oct 24, 2026
Merged

marc0der merged 1 commit into
masterfrom
fix/windows-path-separator-test

Conversation

@chloe41427

@chloe41427 chloe41427 Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

should_fail_if_candidate_file_is_missing fails on Windows (run 40044460349). It asserts that the error contains var/candidates, but the message renders the path with Path::display(), which uses native separators, so on Windows it reads var\candidates.

The test now builds the expected path with Path::join, so it matches the platform separator. Production code is unchanged; the error message was already correct on every platform.

Note on CI

pull_request.yml runs on pull_request_target and checks out the base branch, not the PR head. The PR checks here therefore test master, so they are expected to fail on Windows until this is merged. The push build on master after the merge is the real verification.

Signed-off-by: Chloe41427[bot] <chloe@sdkman.io>
@marc0der
marc0der merged commit a390df9 into master Oct 24, 2026
3 of 4 checks passed
@marc0der
marc0der deleted the fix/windows-path-separator-test branch October 24, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant