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
net: Listen("tcp", "localhost:0")
fails on js/wasm
and wasip1/wasm
#59718
Comments
Change https://go.dev/cl/486315 mentions this issue: |
testenv.HasExec should not assume that "js" and "ios" are the only platforms that can't exec. Instead of hard-coding a list of GOOS, hard-code only the ones known to work and probe the remainder by trying to re-exec the test binary. Similarly, in testenv_notunix, negate the list of unix platforms instead of hard-coding the non-unix ones. Add missing calls to testenv functions were needed. For golang/go#58141. Updates golang/go#59718. Change-Id: I0114e0bfb6d091e84b325d7f9bb0896da22482be Reviewed-on: https://go-review.googlesource.com/c/tools/+/486315 Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Run-TryBot: Bryan Mills <bcmills@google.com> Commit-Queue: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/502315 mentions this issue: |
Listen("tcp", "localhost:0")
fails on js/wasm
Listen("tcp", "localhost:0")
fails on js/wasm
and wasip1/wasm
@golang/wasm, is this something that can reasonably be fixed? Dealing with this idiosyncrasy adds significant friction in writing tests. |
I'm looking at https://cs.opensource.google/go/x/net/+/refs/tags/v0.14.0:nettest/nettest.go;l=111 and it looks to me like both |
@johanbrandhorst , that's for |
Ah so the problem is in |
Change https://go.dev/cl/526117 mentions this issue: |
Change https://go.dev/cl/557176 mentions this issue: |
I added this map in CL 526117, but it is apparently unused. I assume that I removed all uses of it while revising that change. Updates #59718. Updates #50216. Change-Id: I8cdac39f4764d1fcc31566408304c850cf0f9374 Reviewed-on: https://go-review.googlesource.com/c/go/+/557176 Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
I added this map in CL 526117, but it is apparently unused. I assume that I removed all uses of it while revising that change. Updates golang#59718. Updates golang#50216. Change-Id: I8cdac39f4764d1fcc31566408304c850cf0f9374 Reviewed-on: https://go-review.googlesource.com/c/go/+/557176 Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following program with
GOOS=js GOARCH=wasm
:What did you expect to see?
One of the “…
is not testable
“ messages, or a Listener address.What did you see instead?
Perhaps tellingly,
net/conn_test.go
claims:but then:
(introduced in CL 109995)
(attn @golang/wasm)
The text was updated successfully, but these errors were encountered: