Skip to content

Commit e5bdfb0

Browse files
committed
fix: increase the timeout for chromedp to connect to the headless browser used for running
the wasm tests. Also add favicon link to avoid extra fetches during test runs. Signed-off-by: deadprogram <[email protected]>
1 parent e80c6c4 commit e5bdfb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/wasm/setup_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func chromectx(t *testing.T) context.Context {
4343
chromedp.Flag("disable-default-apps", true),
4444
chromedp.NoFirstRun,
4545
chromedp.Headless,
46+
chromedp.WSURLReadTimeout(45*time.Second),
4647
)
4748

4849
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)
@@ -81,6 +82,7 @@ func startServer(t *testing.T) (string, *httptest.Server) {
8182
<head>
8283
<title>Test</title>
8384
<meta charset="utf-8"/>
85+
<link rel="icon" href="data:,">
8486
</head>
8587
<body>
8688
<div id="main"></div>

0 commit comments

Comments
 (0)