X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Ffollows.ts;h=010b488d8baf572f739a57559d93e92ad99e7b0e;hb=09becad8e85cc4007ff862b26fa4195f3d0e7c8d;hp=c0115e534c6db7e425895404a69573f89272563c;hpb=54e740594bc2eacd8026b5d2d6cfdfc06416a65b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index c0115e534..010b488d8 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -4,7 +4,7 @@ import * as chai from 'chai' import 'mocha' import { Video, VideoPrivacy } from '../../../../shared/models/videos' import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' -import { checkVideoFilesWereRemoved, completeVideoCheck } from '../../utils' +import { completeVideoCheck } from '../../utils' import { flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo, @@ -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' }) @@ -280,8 +280,11 @@ describe('Test follows', function () { language: 3, nsfw: true, description: 'my super description', - host: 'localhost:9003', - account: 'root', + support: 'my super support text', + account: { + name: 'root', + host: 'localhost:9003' + }, isLocal, commentsEnabled: true, duration: 5, @@ -353,8 +356,6 @@ describe('Test follows', function () { let res = await getVideosList(servers[ 0 ].url) expect(res.body.total).to.equal(1) - - await checkVideoFilesWereRemoved(video4.uuid, servers[0].serverNumber) }) })