Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests on macOS #303

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Fix tests on macOS #303

merged 1 commit into from
Jul 20, 2021

Conversation

athei
Copy link
Contributor

@athei athei commented Jul 19, 2021

One of the tests fails to pass on macOS. The reason is that the temporary pass used is a symlink and one side of the equality used path canonicalization while the other does not.

This PR fixes that by adding canonicalization to the test only with_tmp_dir function.

@athei athei added the bug Something isn't working label Jul 19, 2021
@athei athei requested review from ascjones and cmichi July 19, 2021 17:33
Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it locally and it looks good.

We should consider adding some macOS runners to the CI to catch stuff like this (see https://github.com/paritytech/cargo-contract/issues/304).

@HCastano HCastano merged commit 373c503 into master Jul 20, 2021
@HCastano HCastano deleted the at-fix-test-macos branch July 20, 2021 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants