aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>2023-08-01 16:01:13 -0700
committerGopher Robot <gobot@golang.org>2023-08-03 22:16:40 +0000
commitaeef93cd648b19de8d9e6899dec370b7c99740d3 (patch)
treeed1c7ea0ac03836e1f1e9d835ba1169900ca71ab
parent35de5f2b0ee28dd9981d2754336cb9bd26e44b28 (diff)
downloadgo-aeef93cd648b19de8d9e6899dec370b7c99740d3.tar.gz
go-aeef93cd648b19de8d9e6899dec370b7c99740d3.zip
[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 <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
-rw-r--r--src/runtime/internal/wasitest/tcpecho_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/internal/wasitest/tcpecho_test.go b/src/runtime/internal/wasitest/tcpecho_test.go
index c56af2cc85..c15da86f35 100644
--- a/src/runtime/internal/wasitest/tcpecho_test.go
+++ b/src/runtime/internal/wasitest/tcpecho_test.go
@@ -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")