mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user