mirror of
https://github.com/golang/go
synced 2024-11-23 04:50:06 -07:00
runtime/internal: switch GOWASIRUNTIME default
CL 513235 switched the default wasip1 runtime in the misc/wasm executable script, but it missed this use of the GOWASIRUNTIME environment variable. Update this instance to make the default runtime choice consistent. Change-Id: Iff7f96231422747a38d65d13a940f6e9d04d835d Reviewed-on: https://go-review.googlesource.com/c/go/+/515115 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Achille Roussel <achille.roussel@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
This commit is contained in:
parent
64939f62aa
commit
3687f77069
@ -44,9 +44,9 @@ func TestTCPEcho(t *testing.T) {
|
||||
subProcess.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm")
|
||||
|
||||
switch os.Getenv("GOWASIRUNTIME") {
|
||||
case "wazero", "":
|
||||
case "wazero":
|
||||
subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--listen="+host)
|
||||
case "wasmtime":
|
||||
case "wasmtime", "":
|
||||
subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--tcplisten="+host)
|
||||
default:
|
||||
t.Skip("WASI runtime does not support sockets")
|
||||
|
Loading…
Reference in New Issue
Block a user