// Server 1 and server 2 follow each other
await doubleFollow(servers[0], servers[1])
+ await doubleFollow(servers[0], servers[2])
await commands[0].updateRedundancy({ host: servers[1].host, redundancyAllowed: true })
await waitJobs(servers)
}
})
+ it('Should correctly list followings by redundancy', async function () {
+ const body = await servers[0].follows.getFollowings({ sort: '-redundancyAllowed' })
+
+ expect(body.total).to.equal(2)
+ expect(body.data).to.have.lengthOf(2)
+
+ expect(body.data[0].following.host).to.equal(servers[1].host)
+ expect(body.data[1].following.host).to.equal(servers[2].host)
+ })
+
it('Should not have "remote-videos" redundancies on server 2', async function () {
this.timeout(120000)