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 redis_int_tests::passthrough_redis_down on macos #1617

Merged
merged 2 commits into from
May 10, 2024

Conversation

rukai
Copy link
Member

@rukai rukai commented May 8, 2024

progress towards #1615

the test passthrough_redis_down asserts that a specific error is returned by shotover when the redis instance is down.
Since mac os and linux have different error codes for connection refused the test passes on linux but fails on macos.

This PR fixes the test to also run on macos.
This is done by having a constant included into the assertion that is equal to 61 on macos and equal to 111 on all other OSs.
There are probably other OSs that this doesnt fix but thats fine, at this time we only care about linux and macos.

@rukai rukai force-pushed the fix_passthrough_redis_down_on_macos branch from 01651ca to 7ff5c5c Compare May 8, 2024 07:16
@rukai rukai requested a review from conorbros May 8, 2024 07:17
@rukai rukai enabled auto-merge (squash) May 10, 2024 03:15
@ronycsdu ronycsdu requested review from ronycsdu and removed request for ronycsdu May 10, 2024 03:16
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.

4 participants