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 <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-09-11 13:08:57 +02:00
committed by Ron Evans
parent e80c6c48a1
commit e5bdfb0962
+2
View File
@@ -43,6 +43,7 @@ func chromectx(t *testing.T) context.Context {
chromedp.Flag("disable-default-apps", true),
chromedp.NoFirstRun,
chromedp.Headless,
chromedp.WSURLReadTimeout(45*time.Second),
)
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)
@@ -81,6 +82,7 @@ func startServer(t *testing.T) (string, *httptest.Server) {
<head>
<title>Test</title>
<meta charset="utf-8"/>
<link rel="icon" href="data:,">
</head>
<body>
<div id="main"></div>