The latest wazero release supports non-blocking I/O and pre-opened
sockets. Unmask the relevant wasip1 tests so that there are multiple
WebAssembly runtimes exercising these code paths.
Change-Id: I8506ab35186f98fde2cd3ce84634d5fcb7b053f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/503595
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
}
switch os.Getenv("GOWASIRUNTIME") {
- case "wazero", "":
- t.Skip("wazero does not support non-blocking I/O")
case "wasmer":
t.Skip("wasmer does not support non-blocking I/O")
}
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: