diff options
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 1 | ||||
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 2148d8e1c..1b6f0f48a 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -582,6 +582,7 @@ describe('Test multiple servers', function () { | |||
582 | 582 | ||
583 | await waitJobs(servers) | 583 | await waitJobs(servers) |
584 | await wait(5000) | 584 | await wait(5000) |
585 | await waitJobs(servers) | ||
585 | 586 | ||
586 | let baseVideos = null | 587 | let baseVideos = null |
587 | for (const server of servers) { | 588 | for (const server of servers) { |
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 5f30939cc..c9c3792eb 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -43,7 +43,7 @@ describe('Test video NSFW policy', function () { | |||
43 | if (token) { | 43 | if (token) { |
44 | promises = [ | 44 | promises = [ |
45 | getVideosListWithToken(server.url, token, query).then(res => res.body), | 45 | getVideosListWithToken(server.url, token, query).then(res => res.body), |
46 | server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', ...query } }), | 46 | server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', sort: '-publishedAt', ...query } }), |
47 | getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body), | 47 | getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body), |
48 | getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body) | 48 | getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body) |
49 | ] | 49 | ] |
@@ -60,7 +60,7 @@ describe('Test video NSFW policy', function () { | |||
60 | 60 | ||
61 | promises = [ | 61 | promises = [ |
62 | getVideosList(server.url).then(res => res.body), | 62 | getVideosList(server.url).then(res => res.body), |
63 | server.searchCommand.searchVideos({ search: 'n' }), | 63 | server.searchCommand.searchVideos({ search: 'n', sort: '-publishedAt' }), |
64 | getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body), | 64 | getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body), |
65 | getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body) | 65 | getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body) |
66 | ] | 66 | ] |