Increase tests waits

This commit is contained in:
Chocobozzz 2020-11-12 08:51:42 +01:00
parent b8fa24491c
commit 2a9562fc58
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 5 deletions

View File

@ -462,17 +462,17 @@ describe('Test live', function () {
await viewVideo(servers[0].url, liveVideoId) await viewVideo(servers[0].url, liveVideoId)
await viewVideo(servers[0].url, liveVideoId) await viewVideo(servers[0].url, liveVideoId)
await wait(5000) await wait(7000)
await waitJobs(servers) await waitJobs(servers)
await countViews(1) await countViews(1)
}) })
it('Should wait 5 seconds and display 0 views', async function () { it('Should wait and display 0 views', async function () {
this.timeout(30000) this.timeout(30000)
await wait(5000) await wait(7000)
await waitJobs(servers) await waitJobs(servers)
await countViews(0) await countViews(0)
@ -485,7 +485,7 @@ describe('Test live', function () {
await viewVideo(servers[1].url, liveVideoId) await viewVideo(servers[1].url, liveVideoId)
await viewVideo(servers[1].url, liveVideoId) await viewVideo(servers[1].url, liveVideoId)
await wait(5000) await wait(7000)
await waitJobs(servers) await waitJobs(servers)
await countViews(2) await countViews(2)

View File

@ -111,7 +111,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE
let error: Error let error: Error
try { try {
await waitFfmpegUntilError(command, 10000) await waitFfmpegUntilError(command, 15000)
} catch (err) { } catch (err) {
error = err error = err
} }