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

Set the test validator address to 127.0.0.1 #3

Merged
merged 1 commit into from Nov 13, 2023

Conversation

ilovehackathons
Copy link
Contributor

anchor run test was failing, because it was trying to connect to ::1(IPv6) instead of 127.0.0.1 (IPv4). solana-test-validator uses IPv4 by default. Setting the bind address to 127.0.0.1 in Anchor.toml fixes the issue.

`anchor run test` was failing, because it was trying to connect to `::1`(IPv6) instead of `127.0.0.1` (IPv4). `solana-test-validator` uses IPv4 by default. Setting the bind address to `127.0.0.1` in `Anchor.toml` fixes the issue.
Copy link
Member

@nickfrosty nickfrosty left a comment

Choose a reason for hiding this comment

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

Thanks for the addition!

@nickfrosty nickfrosty merged commit 4da787e into solana-developers:main Nov 13, 2023
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.

None yet

2 participants