Fix NSFW tests

pull/4271/head
Chocobozzz 2021-07-13 08:33:02 +02:00
parent 5e2fea3ab9
commit 0d8ecb7592
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View File

@ -582,6 +582,7 @@ describe('Test multiple servers', function () {
await waitJobs(servers) await waitJobs(servers)
await wait(5000) await wait(5000)
await waitJobs(servers)
let baseVideos = null let baseVideos = null
for (const server of servers) { for (const server of servers) {

View File

@ -43,7 +43,7 @@ describe('Test video NSFW policy', function () {
if (token) { if (token) {
promises = [ promises = [
getVideosListWithToken(server.url, token, query).then(res => res.body), getVideosListWithToken(server.url, token, query).then(res => res.body),
server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', ...query } }), server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', sort: '-publishedAt', ...query } }),
getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body), getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body),
getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body) getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body)
] ]
@ -60,7 +60,7 @@ describe('Test video NSFW policy', function () {
promises = [ promises = [
getVideosList(server.url).then(res => res.body), getVideosList(server.url).then(res => res.body),
server.searchCommand.searchVideos({ search: 'n' }), server.searchCommand.searchVideos({ search: 'n', sort: '-publishedAt' }),
getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body), getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body),
getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body) getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body)
] ]