Skip to content

Commit aeef93c

Browse files
johanbrandhorstgopherbot
authored andcommitted
[release-branch.go1.21] 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/+/515116 Reviewed-by: David Chase <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Johan Brandhorst-Satzkorn <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Johan Brandhorst-Satzkorn <[email protected]>
1 parent 35de5f2 commit aeef93c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/internal/wasitest/tcpecho_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ func TestTCPEcho(t *testing.T) {
4444
subProcess.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm")
4545

4646
switch os.Getenv("GOWASIRUNTIME") {
47-
case "wazero", "":
47+
case "wazero":
4848
subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--listen="+host)
49-
case "wasmtime":
49+
case "wasmtime", "":
5050
subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--tcplisten="+host)
5151
default:
5252
t.Skip("WASI runtime does not support sockets")

0 commit comments

Comments
 (0)