From b947a3d0546376004989d2166ba4470b1de533e1 Mon Sep 17 00:00:00 2001 From: Yad Smood Date: Sun, 16 Oct 2022 22:06:43 +0800 Subject: [PATCH] make test less flaky --- lib/launcher/private_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/launcher/private_test.go b/lib/launcher/private_test.go index 5c9cb307..923b5e9a 100644 --- a/lib/launcher/private_test.go +++ b/lib/launcher/private_test.go @@ -177,10 +177,10 @@ func TestURLParserErr(t *testing.T) { func TestBrowserDownloadErr(t *testing.T) { g := setup(t) + r := g.Serve().Route("/", "", "") b := NewBrowser() b.Logger = utils.LoggerQuiet - malURL := "https://npm.taobao.org/mirrors/chromium-browser-snapshots//869685/" - g.Has(b.download(g.Context(), malURL).Error(), "failed to download the browser: 200") + g.Has(b.download(g.Context(), r.URL()).Error(), "failed to download the browser: 200") } func TestTestOpen(t *testing.T) {