From 80b1fb81519e348a28227bd26f7226372bfdffd5 Mon Sep 17 00:00:00 2001 From: freearhey Date: Wed, 27 May 2020 20:14:06 +0300 Subject: [PATCH] Exclude timed out links from logs --- scripts/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test.js b/scripts/test.js index d14756323..1aca3ef9d 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -7,7 +7,7 @@ const config = { debug: process.env.npm_config_debug || false, country: process.env.npm_config_country, exclude: process.env.npm_config_exclude, - timeout: 60000 + timeout: 10000 } let stats = { @@ -33,7 +33,7 @@ async function test() { omitMetadata: true, parallel: 1, itemCallback: item => { - if (!item.status.ok) { + if (!item.status.ok && item.status.reason !== 'Timed out') { stats.failures++ helper.writeToLog(country.url, item.status.reason, item.url)