From 29b65401d4b05bcf3077bc0dd50a5389e2045a7b Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Wed, 24 May 2023 09:56:39 +0200 Subject: [PATCH] reduce timeout to 30s --- src/workers/CommandorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 155d514..857405d 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -154,7 +154,7 @@ class CommandorPage { logWithDevice("will open google", this.device) if (!this.isTerminated) { const item = searchTexts[Math.floor(Math.random() * searchTexts.length)]; - await this.page.goto("https://www.google.com/search?q=" + item + "&lr=lang_en", {timeout: 90 * 1000}); + await this.page.goto("https://www.google.com/search?q=" + item + "&lr=lang_en", {timeout: 30 * 1000}); } // await this.page.goto(RDV_URL, {timeout: 90 * 1000}); } catch (e) {