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

Cargo test failure on macOS #165

Open
jopemachine opened this issue Oct 14, 2024 · 0 comments
Open

Cargo test failure on macOS #165

jopemachine opened this issue Oct 14, 2024 · 0 comments

Comments

@jopemachine
Copy link
Member

After #157, the cargo test command fails on macOS with an AddrNotAvailable error because only 127.0.0.1 is assigned as the loopback address by default on macOS.

As a workaround, by running the script below to assign all 127.0.0.x addresses as loopback, we can make the test code work properly on macOS as well.

./misc/setup-loopback-addresses.sh

Since this configuration resets after a reboot, we need to rerun the script.
It would be better to find a solution that doesn't require running the script every time.

@jopemachine jopemachine changed the title Cargo test failure on macos Cargo test failure on macOS Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant