aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/wasm/fmt_test.go
diff options
context:
space:
mode:
authorNia Waldvogel <[email protected]>2022-01-18 12:17:43 -0500
committerRon Evans <[email protected]>2022-01-18 19:29:29 +0100
commit7c3a22d289492dd5366b8e41133d9f0e1c323a7c (patch)
tree4aa6faed4c70b6b7b1ede7410d0cafcde6258045 /tests/wasm/fmt_test.go
parent2c7ea98ccf6f747f4b5abf2a5bb6c052f72aff7f (diff)
downloadtinygo-7c3a22d289492dd5366b8e41133d9f0e1c323a7c.tar.gz
tinygo-7c3a22d289492dd5366b8e41133d9f0e1c323a7c.zip
wasmtest: fix resource cleanup and add logging
The chromedp context was not cancelled, so resources may have been leaking. Additionally this waits for the browser to start before the timer starts, and extends the timeout to 20 seconds. Logging from chromedp has also been enabled, which may help identify possible issues?
Diffstat (limited to 'tests/wasm/fmt_test.go')
-rw-r--r--tests/wasm/fmt_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/wasm/fmt_test.go b/tests/wasm/fmt_test.go
index d3695f072..cb88e36db 100644
--- a/tests/wasm/fmt_test.go
+++ b/tests/wasm/fmt_test.go
@@ -15,8 +15,7 @@ func TestFmt(t *testing.T) {
t.Fatal(err)
}
- ctx, cancel := chromectx()
- defer cancel()
+ ctx := chromectx(t)
var log1 string
err = chromedp.Run(ctx,