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.Flag("disable-default-apps", true),
chromedp.NoFirstRun, chromedp.NoFirstRun,
chromedp.Headless, chromedp.Headless,
chromedp.WSURLReadTimeout(45*time.Second),
) )
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...) allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)
@@ -81,6 +82,7 @@ func startServer(t *testing.T) (string, *httptest.Server) {
<head> <head>
<title>Test</title> <title>Test</title>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<link rel="icon" href="data:,">
</head> </head>
<body> <body>
<div id="main"></div> <div id="main"></div>