Skip to content

Commit

Permalink
var name
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 14, 2024
1 parent 643af0e commit 2861b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install-wad.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2861b2e

Please sign in to comment.