diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 08:33:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 0d8ecb7592577f54012413a2b5a9b159cfc90399 (patch) | |
tree | 53a54395e368b8cf6876287a53e30f1be79b3870 /server | |
parent | 5e2fea3ab9357c228b5d21166092f9a2368e258e (diff) | |
download | PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.tar.gz PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.tar.zst PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.zip |
Fix NSFW tests
Diffstat (limited to 'server')
-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 | ] |