From 2b75688ab24e9f48bbfaab2d8362b85e404889a1 Mon Sep 17 00:00:00 2001 From: freearhey Date: Wed, 20 Mar 2019 01:26:21 +0300 Subject: [PATCH] Update test Increased timeout and added delay to each request --- test/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 7627ce665..cc5f6b088 100644 --- a/test/index.js +++ b/test/index.js @@ -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 {