X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=server%2Ftests%2Fapi%2Fserver%2Ffollows.ts;h=46ad4879e0b97d08d5df1b0602071adc6d46a6a9;hb=2bb0f9d501845d049827a91138ceb28d729228ec;hp=fad58e840a53daaeb0657fdca283c7f34649886a;hpb=7006bc6378eb0d480bc5b60f2c18876f0bb2a97d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index fad58e840..46ad4879e 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -27,7 +27,7 @@ describe('Test follows', function () { let servers: ServerInfo[] = [] before(async function () { - this.timeout(20000) + this.timeout(30000) servers = await flushAndRunMultipleServers(3) @@ -169,7 +169,7 @@ describe('Test follows', function () { await expectAccountFollows(servers[2].url, 'peertube@localhost:9003', 0, 0) }) - it('Should upload a video on server 2 ans 3 and propagate only the video of server 2', async function () { + it('Should upload a video on server 2 and 3 and propagate only the video of server 2', async function () { this.timeout(10000) await uploadVideo(servers[1].url, servers[1].accessToken, { name: 'server2' }) @@ -343,6 +343,18 @@ describe('Test follows', function () { expect(secondChild.comment.text).to.equal('my second answer to thread 1') expect(secondChild.children).to.have.lengthOf(0) }) + + it('Should unfollow server 3 on server 1 and does not list server 3 videos', async function () { + this.timeout(5000) + + await unfollow(servers[0].url, servers[0].accessToken, servers[2]) + + await wait(3000) + + let res = await getVideosList(servers[ 0 ].url) + expect(res.body.total).to.equal(1) + }) + }) after(async function () {