Skip to content

Commit b947a3d

Browse files
committed
make test less flaky
1 parent 731b503 commit b947a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/launcher/private_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ func TestURLParserErr(t *testing.T) {
177177
func TestBrowserDownloadErr(t *testing.T) {
178178
g := setup(t)
179179

180+
r := g.Serve().Route("/", "", "")
180181
b := NewBrowser()
181182
b.Logger = utils.LoggerQuiet
182-
malURL := "https://npm.taobao.org/mirrors/chromium-browser-snapshots//869685/"
183-
g.Has(b.download(g.Context(), malURL).Error(), "failed to download the browser: 200")
183+
g.Has(b.download(g.Context(), r.URL()).Error(), "failed to download the browser: 200")
184184
}
185185

186186
func TestTestOpen(t *testing.T) {

0 commit comments

Comments
 (0)