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

Copy port from headless test server when using WASM_BINDGEN_TEST_ADDRESS #3872

Closed
wants to merge 13 commits into from

Conversation

lynn
Copy link
Contributor

@lynn lynn commented Mar 5, 2024

When putting #3861 to practice, I realized that it's a bit hard to use, because the headless test server might open on a different port every time. It's better to copy the port from the server when it isn't specified. So for example when it happens to open on 127.0.0.1:23456 and WASM_BINDGEN_TEST_ADDRESS is set to http://localhost.mydomain.org we should connect to http://localhost.mydomain.org:23456 in the test runner (not the default port 80).

@lynn lynn closed this Mar 5, 2024
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