strategies.push(
{
min_lifetime: '1 hour',
- strategy: strategy,
+ strategy,
size: '400KB',
...additionalParams
const { id } = await servers[1].videos.upload({ attributes: { name: 'video 1 server 2' } })
video1Server2 = await servers[1].videos.get({ id })
- await servers[1].videos.view({ id })
+ await servers[1].views.simulateView({ id })
}
await waitJobs(servers)
it('Should view 2 times the first video to have > min_views config', async function () {
this.timeout(80000)
- await servers[0].videos.view({ id: video1Server2.uuid })
- await servers[2].videos.view({ id: video1Server2.uuid })
+ await servers[0].views.simulateView({ id: video1Server2.uuid })
+ await servers[2].views.simulateView({ id: video1Server2.uuid })
await wait(10000)
await waitJobs(servers)
it('Should have 1 redundancy on the first video', async function () {
this.timeout(160000)
- await servers[0].videos.view({ id: video1Server2.uuid })
- await servers[2].videos.view({ id: video1Server2.uuid })
+ await servers[0].views.simulateView({ id: video1Server2.uuid })
+ await servers[2].views.simulateView({ id: video1Server2.uuid })
await wait(10000)
await waitJobs(servers)