// All servers should have this video
let publishedAt: string = null
for (const server of servers) {
- const isLocal = server.url === 'http://localhost:' + servers[0].port
+ const isLocal = server.port === servers[0].port
const checkAttributes = {
name: 'my super name for server 1',
category: 5,
files: [
{
resolution: 240,
- size: 187000
+ size: 189000
},
{
resolution: 360,
},
{
resolution: 480,
- size: 383000
+ size: 384000
},
{
resolution: 720,
})
it('Should view multiple videos on each servers', async function () {
- this.timeout(30000)
+ this.timeout(45000)
const tasks: Promise<any>[] = []
tasks.push(viewVideo(servers[0].url, remoteVideosServer1[0]))
await waitJobs(servers)
// Wait the repeatable job
- await wait(8000)
+ await wait(16000)
let baseVideos = null