uploadVideo,
uploadVideoAndGetId,
userLogin,
+ wait,
waitJobs
} from '../../../../shared/extra-utils'
import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model'
})
await waitJobs(servers)
+ // Processing a playlist by the receiver could be long
+ await wait(3000)
for (const server of servers) {
const res = await getVideoPlaylistsList(server.url, 0, 5)
}
await waitJobs(servers)
+ await wait(3000)
for (const server of [ servers[0], servers[1] ]) {
const res = await getVideoPlaylistsList(server.url, 0, 5)
})
await waitJobs(servers)
+ await wait(3000)
for (const server of servers) {
const results = [
let video3: string
before(async function () {
- this.timeout(30000)
+ this.timeout(60000)
groupUser1 = [ Object.assign({}, servers[0], { accessToken: userAccessTokenServer1 }) ]
groupWithoutToken1 = [ Object.assign({}, servers[0], { accessToken: undefined }) ]
video2 = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video 90' })).uuid
video3 = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video 91', nsfw: true })).uuid
+ await waitJobs(servers)
+
await addVideo({ videoId: video1, startTimestamp: 15, stopTimestamp: 28 })
await addVideo({ videoId: video2, startTimestamp: 35 })
await addVideo({ videoId: video3 })