Verified Commit 0d8ecb75 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix NSFW tests

parent 5e2fea3a
......@@ -582,6 +582,7 @@ describe('Test multiple servers', function () {
await waitJobs(servers)
await wait(5000)
await waitJobs(servers)
let baseVideos = null
for (const server of servers) {
......
......@@ -43,7 +43,7 @@ describe('Test video NSFW policy', function () {
if (token) {
promises = [
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),
getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body)
]
......@@ -60,7 +60,7 @@ describe('Test video NSFW policy', function () {
promises = [
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),
getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body)
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment