From e0f6c38d8144605ef1eb28d37647297879801f95 Mon Sep 17 00:00:00 2001 From: freearhey Date: Thu, 17 Sep 2020 16:51:03 +0300 Subject: [PATCH] Remove duplicates from log --- scripts/test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/test.js b/scripts/test.js index 658589d60..c133e5e0b 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -34,7 +34,11 @@ async function test() { parallel: 1, itemCallback: item => { stats.channels++ - if (!item.status.ok && item.status.reason !== 'Timed out') { + if ( + !item.status.ok && + item.status.reason !== 'Timed out' && + item.status.reason !== 'Duplicate' + ) { stats.failures++ helper.writeToLog(country.url, item.status.reason, item.url)