X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fbulk.ts;h=66d791a0f2cb13dea859e28489f3df42c5dbd71d;hb=6a9b3151822461a85bbc72b7a50e12ffb69bec3a;hp=560dcc76e305f9af065f057886e0a1ae0c55594f;hpb=e0faa8ad6e18ce6248ef1ec93a59dab5b05be468;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/bulk.ts b/server/tests/api/server/bulk.ts index 560dcc76e..66d791a0f 100644 --- a/server/tests/api/server/bulk.ts +++ b/server/tests/api/server/bulk.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { BulkCommand, cleanupTests, @@ -11,8 +11,6 @@ import { waitJobs } from '@shared/server-commands' -const expect = chai.expect - describe('Test bulk actions', function () { const commentsUser3: { videoId: number, commentId: number }[] = [] @@ -24,7 +22,7 @@ describe('Test bulk actions', function () { let bulkCommand: BulkCommand before(async function () { - this.timeout(30000) + this.timeout(120000) servers = await createMultipleServers(2) @@ -79,7 +77,7 @@ describe('Test bulk actions', function () { const { data } = await servers[1].comments.listThreads({ videoId: video.id }) const comment = data.find(c => c.text === 'comment by user 3') - if (video.account.host === 'localhost:' + servers[0].port) { + if (video.account.host === servers[0].host) { expect(comment).to.not.exist } else { expect(comment).to.exist @@ -89,7 +87,7 @@ describe('Test bulk actions', function () { } before(async function () { - this.timeout(120000) + this.timeout(240000) await servers[0].videos.upload({ attributes: { name: 'video 1 server 1' } }) await servers[0].videos.upload({ attributes: { name: 'video 2 server 1' } }) @@ -153,7 +151,7 @@ describe('Test bulk actions', function () { await bulkCommand.removeCommentsOf({ attributes: { - accountName: 'user3@localhost:' + servers[1].port, + accountName: 'user3@' + servers[1].host, scope: 'instance' } })