From 3687f77069a8f40a596be7bd848985990908f0d9 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst-Satzkorn Date: Tue, 1 Aug 2023 16:01:13 -0700 Subject: [PATCH] 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 Reviewed-by: David Chase Reviewed-by: Dmitri Shuralyov Reviewed-by: Achille Roussel Reviewed-by: Dmitri Shuralyov Auto-Submit: Johan Brandhorst-Satzkorn Run-TryBot: Johan Brandhorst-Satzkorn --- src/runtime/internal/wasitest/tcpecho_test.go | 4 ++-- 1 file 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") -- 2.50.0