Update test.js

Fixes wrong channels counter
This commit is contained in:
freearhey 2020-09-16 16:05:25 +03:00
parent c79415e2d2
commit 45d92c14c9
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ async function test() {
omitMetadata: true, omitMetadata: true,
parallel: 1, parallel: 1,
itemCallback: item => { itemCallback: item => {
stats.channels++
if (!item.status.ok && item.status.reason !== 'Timed out') { if (!item.status.ok && item.status.reason !== 'Timed out') {
stats.failures++ stats.failures++