]> Cypherpunks.ru repositories - gostls13.git/commitdiff
[release-branch.go1.21] runtime/internal: switch GOWASIRUNTIME default
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Tue, 1 Aug 2023 23:01:13 +0000 (16:01 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 3 Aug 2023 22:16:40 +0000 (22:16 +0000)
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>

src/runtime/internal/wasitest/tcpecho_test.go

index c56af2cc85d4a80cee96ad13db9dd6c908af8e9e..c15da86f35eb1f31f34df9c0dd69b9709c5a7f06 100644 (file)
@@ -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")