diff options
Diffstat (limited to 'tests/wasm/chan_test.go')
-rw-r--r-- | tests/wasm/chan_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/wasm/chan_test.go b/tests/wasm/chan_test.go index 1cd08e664..2faf95bac 100644 --- a/tests/wasm/chan_test.go +++ b/tests/wasm/chan_test.go @@ -11,6 +11,9 @@ func TestChan(t *testing.T) { t.Parallel() + wasmTmpDir, server, cleanup := startServer(t) + defer cleanup() + err := run("tinygo build -o " + wasmTmpDir + "/chan.wasm -target wasm testdata/chan.go") if err != nil { t.Fatal(err) @@ -20,7 +23,7 @@ func TestChan(t *testing.T) { defer cancel() err = chromedp.Run(ctx, - chromedp.Navigate("http://localhost:8826/run?file=chan.wasm"), + chromedp.Navigate(server.URL+"/run?file=chan.wasm"), waitLog(`1 2 4 |