Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
fix WBT
  • Loading branch information
pavelsavara committed Jul 31, 2024
commit 3358a40c5bd391e50161df3d6fcb3e742cab5e9e
3 changes: 2 additions & 1 deletion src/mono/wasi/Wasi.Build.Tests/WasiTemplateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public void ConsoleBuildAndRunForDifferentOutputPaths(string config, bool append

CommandResult res = new RunCommand(s_buildEnv, _testOutput)
.WithWorkingDirectory(_projectDir!)
.ExecuteWithCapturedOutput($"run --no-silent --no-build -c {config} x y z")
// wasmtime --wasi http is necessary because the default dotnet.wasm (without native rebuild depends on wasi:http world)
.ExecuteWithCapturedOutput($"run --no-silent --no-build -c {config} --extra-host-arg=--wasi --extra-host-arg=http x y z")
.EnsureSuccessful();

Assert.Contains("Hello, Wasi Console!", res.Output);
Expand Down