Skip to content

Commit

Permalink
make test less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Oct 16, 2022
1 parent 731b503 commit b947a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/launcher/private_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b947a3d

Please sign in to comment.