aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/internal/wasitest/tcpecho_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/internal/wasitest/tcpecho_test.go')
-rw-r--r--src/runtime/internal/wasitest/tcpecho_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/internal/wasitest/tcpecho_test.go b/src/runtime/internal/wasitest/tcpecho_test.go
index 506e6fe40a..c56af2cc85 100644
--- a/src/runtime/internal/wasitest/tcpecho_test.go
+++ b/src/runtime/internal/wasitest/tcpecho_test.go
@@ -44,6 +44,8 @@ func TestTCPEcho(t *testing.T) {
subProcess.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm")
switch os.Getenv("GOWASIRUNTIME") {
+ case "wazero", "":
+ subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--listen="+host)
case "wasmtime":
subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--tcplisten="+host)
default: