From 2861b2e30fff3e1a4faa51a804c48a1426f2d280 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Sat, 14 Sep 2024 17:06:01 +0200 Subject: [PATCH] var name --- scripts/install-wad.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-wad.mjs b/scripts/install-wad.mjs index bc5fc98..ac2c9ef 100644 --- a/scripts/install-wad.mjs +++ b/scripts/install-wad.mjs @@ -10,7 +10,7 @@ import fs from 'node:fs/promises'; const OWNER = 'microsoft'; const REPO = 'winappdriver'; const API_ROOT = `https://api.github.com/repos/${OWNER}/${REPO}`; -const timeoutMs = 15 * 1000; +const DOWNLOAD_TIMEOUT_MS = 45 * 1000; const STABLE_VERSION = 'stable'; const EXT_MSI = '.msi'; @@ -44,7 +44,7 @@ async function listReleases() { let currentUrl = `${API_ROOT}/releases`; do { const {data, headers} = await axios.get(currentUrl, { - timeout: timeoutMs + timeout: DOWNLOAD_TIMEOUT_MS }); allReleases.push(...data); currentUrl = parseNextPageUrl(headers);