Update test

Increased timeout and added delay to each request
This commit is contained in:
freearhey 2019-03-20 01:26:21 +03:00
parent 77806378b1
commit 2b75688ab2
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,8 @@ const axios = require('axios')
const path = require('path')
const errorLog = 'error.log'
const timeout = 10000
const timeout = 60000
const delay = 200
let tests = 0
let channels = 0
@ -38,6 +39,10 @@ async function testAllLinksIsWorking() {
for(let channel of playlist) {
await new Promise(resolve => {
setTimeout(resolve, delay)
})
channels++
try {