diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-playlists.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index b194665ba..7d1215990 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/video-playlists.ts | |||
@@ -41,6 +41,7 @@ import { | |||
41 | uploadVideo, | 41 | uploadVideo, |
42 | uploadVideoAndGetId, | 42 | uploadVideoAndGetId, |
43 | userLogin, | 43 | userLogin, |
44 | wait, | ||
44 | waitJobs | 45 | waitJobs |
45 | } from '../../../../shared/extra-utils' | 46 | } from '../../../../shared/extra-utils' |
46 | import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model' | 47 | import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model' |
@@ -227,6 +228,8 @@ describe('Test video playlists', function () { | |||
227 | }) | 228 | }) |
228 | 229 | ||
229 | await waitJobs(servers) | 230 | await waitJobs(servers) |
231 | // Processing a playlist by the receiver could be long | ||
232 | await wait(3000) | ||
230 | 233 | ||
231 | for (const server of servers) { | 234 | for (const server of servers) { |
232 | const res = await getVideoPlaylistsList(server.url, 0, 5) | 235 | const res = await getVideoPlaylistsList(server.url, 0, 5) |
@@ -310,6 +313,7 @@ describe('Test video playlists', function () { | |||
310 | } | 313 | } |
311 | 314 | ||
312 | await waitJobs(servers) | 315 | await waitJobs(servers) |
316 | await wait(3000) | ||
313 | 317 | ||
314 | for (const server of [ servers[0], servers[1] ]) { | 318 | for (const server of [ servers[0], servers[1] ]) { |
315 | const res = await getVideoPlaylistsList(server.url, 0, 5) | 319 | const res = await getVideoPlaylistsList(server.url, 0, 5) |
@@ -451,6 +455,7 @@ describe('Test video playlists', function () { | |||
451 | }) | 455 | }) |
452 | 456 | ||
453 | await waitJobs(servers) | 457 | await waitJobs(servers) |
458 | await wait(3000) | ||
454 | 459 | ||
455 | for (const server of servers) { | 460 | for (const server of servers) { |
456 | const results = [ | 461 | const results = [ |