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?
This commit is contained in:
Nia Waldvogel
2022-01-18 12:17:43 -05:00
committed by Ron Evans
parent 2c7ea98ccf
commit 7c3a22d289
6 changed files with 17 additions and 17 deletions
+1 -2
View File
@@ -15,8 +15,7 @@ func TestEvent(t *testing.T) {
t.Fatal(err)
}
ctx, cancel := chromectx()
defer cancel()
ctx := chromectx(t)
var log1, log2 string
err = chromedp.Run(ctx,