Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Increase tests waits

Chocobozzz2a9562fc5894
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index de3181928d..29081c6cca 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -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)
diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts
index f90dd420d0..4bfcc583e4 100644
--- a/shared/extra-utils/videos/live.ts
+++ b/shared/extra-utils/videos/live.ts
@@ -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
}