Update test
Increased timeout and added delay to each request
This commit is contained in:
parent
77806378b1
commit
2b75688ab2
@ -5,7 +5,8 @@ const axios = require('axios')
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
const errorLog = 'error.log'
|
const errorLog = 'error.log'
|
||||||
const timeout = 10000
|
const timeout = 60000
|
||||||
|
const delay = 200
|
||||||
|
|
||||||
let tests = 0
|
let tests = 0
|
||||||
let channels = 0
|
let channels = 0
|
||||||
@ -38,6 +39,10 @@ async function testAllLinksIsWorking() {
|
|||||||
|
|
||||||
for(let channel of playlist) {
|
for(let channel of playlist) {
|
||||||
|
|
||||||
|
await new Promise(resolve => {
|
||||||
|
setTimeout(resolve, delay)
|
||||||
|
})
|
||||||
|
|
||||||
channels++
|
channels++
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user