diff options
Diffstat (limited to 'server/tests/api/moderation/abuses.ts')
-rw-r--r-- | server/tests/api/moderation/abuses.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/moderation/abuses.ts b/server/tests/api/moderation/abuses.ts index 97a0d95c4..360b9de35 100644 --- a/server/tests/api/moderation/abuses.ts +++ b/server/tests/api/moderation/abuses.ts | |||
@@ -6,8 +6,8 @@ import { | |||
6 | AbusesCommand, | 6 | AbusesCommand, |
7 | cleanupTests, | 7 | cleanupTests, |
8 | doubleFollow, | 8 | doubleFollow, |
9 | flushAndRunMultipleServers, | 9 | createMultipleServers, |
10 | ServerInfo, | 10 | PeerTubeServer, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | waitJobs | 12 | waitJobs |
13 | } from '@shared/extra-utils' | 13 | } from '@shared/extra-utils' |
@@ -16,7 +16,7 @@ import { AbuseMessage, AbusePredefinedReasonsString, AbuseState, AdminAbuse, Use | |||
16 | const expect = chai.expect | 16 | const expect = chai.expect |
17 | 17 | ||
18 | describe('Test abuses', function () { | 18 | describe('Test abuses', function () { |
19 | let servers: ServerInfo[] = [] | 19 | let servers: PeerTubeServer[] = [] |
20 | let abuseServer1: AdminAbuse | 20 | let abuseServer1: AdminAbuse |
21 | let abuseServer2: AdminAbuse | 21 | let abuseServer2: AdminAbuse |
22 | let commands: AbusesCommand[] | 22 | let commands: AbusesCommand[] |
@@ -25,7 +25,7 @@ describe('Test abuses', function () { | |||
25 | this.timeout(50000) | 25 | this.timeout(50000) |
26 | 26 | ||
27 | // Run servers | 27 | // Run servers |
28 | servers = await flushAndRunMultipleServers(2) | 28 | servers = await createMultipleServers(2) |
29 | 29 | ||
30 | // Get the access tokens | 30 | // Get the access tokens |
31 | await setAccessTokensToServers(servers) | 31 | await setAccessTokensToServers(servers) |
@@ -389,7 +389,7 @@ describe('Test abuses', function () { | |||
389 | 389 | ||
390 | describe('Comment abuses', function () { | 390 | describe('Comment abuses', function () { |
391 | 391 | ||
392 | async function getComment (server: ServerInfo, videoIdArg: number | string) { | 392 | async function getComment (server: PeerTubeServer, videoIdArg: number | string) { |
393 | const videoId = typeof videoIdArg === 'string' | 393 | const videoId = typeof videoIdArg === 'string' |
394 | ? await server.videos.getId({ uuid: videoIdArg }) | 394 | ? await server.videos.getId({ uuid: videoIdArg }) |
395 | : videoIdArg | 395 | : videoIdArg |
@@ -591,7 +591,7 @@ describe('Test abuses', function () { | |||
591 | 591 | ||
592 | describe('Account abuses', function () { | 592 | describe('Account abuses', function () { |
593 | 593 | ||
594 | function getAccountFromServer (server: ServerInfo, targetName: string, targetServer: ServerInfo) { | 594 | function getAccountFromServer (server: PeerTubeServer, targetName: string, targetServer: PeerTubeServer) { |
595 | return server.accounts.get({ accountName: targetName + '@' + targetServer.host }) | 595 | return server.accounts.get({ accountName: targetName + '@' + targetServer.host }) |
596 | } | 596 | } |
597 | 597 | ||