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 wait(5000)
await wait(7000)
await waitJobs(servers)
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)
await wait(5000)
await wait(7000)
await waitJobs(servers)
await countViews(0)
@ -485,7 +485,7 @@ describe('Test live', function () {
await viewVideo(servers[1].url, liveVideoId)
await viewVideo(servers[1].url, liveVideoId)
await wait(5000)
await wait(7000)
await waitJobs(servers)
await countViews(2)

View file

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