X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Ffollows.ts;h=c588cf664162b7c9b59863dd756808546e6b6938;hb=6d9ed0b6cb439f53e6df2aa1e751369bdc0f76ab;hp=a616edcfff89eeb403a99330d3e43212162f91b5;hpb=4d029ef8ec3d5274eeaa3ee6d808eb7035e7faef;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index a616edcff..c588cf664 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -2,19 +2,9 @@ import 'mocha' import * as chai from 'chai' -import { - cleanupTests, - completeVideoCheck, - createMultipleServers, - dateIsValid, - expectAccountFollows, - expectChannelsFollows, - PeerTubeServer, - setAccessTokensToServers, - testCaptionFile, - waitJobs -} from '@shared/extra-utils' +import { completeVideoCheck, dateIsValid, expectAccountFollows, expectChannelsFollows, testCaptionFile } from '@server/tests/shared' import { VideoCreateResult, VideoPrivacy } from '@shared/models' +import { cleanupTests, createMultipleServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands' const expect = chai.expect @@ -22,7 +12,7 @@ describe('Test follows', function () { let servers: PeerTubeServer[] = [] before(async function () { - this.timeout(30000) + this.timeout(120000) servers = await createMultipleServers(3) @@ -292,7 +282,7 @@ describe('Test follows', function () { }) it('Should upload a video on server 2 and 3 and propagate only the video of server 2', async function () { - this.timeout(60000) + this.timeout(120000) await servers[1].videos.upload({ attributes: { name: 'server2' } }) await servers[2].videos.upload({ attributes: { name: 'server3' } }) @@ -416,7 +406,7 @@ describe('Test follows', function () { await servers[2].comments.delete({ videoId: video4.id, commentId: replyId }) } - await servers[2].captions.createVideoCaption({ + await servers[2].captions.add({ language: 'ar', videoId: video4.id, fixture: 'subtitle-good2.vtt' @@ -569,7 +559,7 @@ describe('Test follows', function () { }) it('Should have propagated captions', async function () { - const body = await servers[0].captions.listVideoCaptions({ videoId: video4.id }) + const body = await servers[0].captions.list({ videoId: video4.id }) expect(body.total).to.equal(1) expect(body.data).to.have.lengthOf(1)