diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/api/search/search-activitypub-videos.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'server/tests/api/search/search-activitypub-videos.ts')
-rw-r--r-- | server/tests/api/search/search-activitypub-videos.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/search/search-activitypub-videos.ts b/server/tests/api/search/search-activitypub-videos.ts index 0dfc63446..a015b72a7 100644 --- a/server/tests/api/search/search-activitypub-videos.ts +++ b/server/tests/api/search/search-activitypub-videos.ts | |||
@@ -4,9 +4,9 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | flushAndRunMultipleServers, | 7 | createMultipleServers, |
8 | SearchCommand, | 8 | SearchCommand, |
9 | ServerInfo, | 9 | PeerTubeServer, |
10 | setAccessTokensToServers, | 10 | setAccessTokensToServers, |
11 | wait, | 11 | wait, |
12 | waitJobs | 12 | waitJobs |
@@ -16,7 +16,7 @@ import { VideoPrivacy } from '@shared/models' | |||
16 | const expect = chai.expect | 16 | const expect = chai.expect |
17 | 17 | ||
18 | describe('Test ActivityPub videos search', function () { | 18 | describe('Test ActivityPub videos search', function () { |
19 | let servers: ServerInfo[] | 19 | let servers: PeerTubeServer[] |
20 | let videoServer1UUID: string | 20 | let videoServer1UUID: string |
21 | let videoServer2UUID: string | 21 | let videoServer2UUID: string |
22 | 22 | ||
@@ -25,7 +25,7 @@ describe('Test ActivityPub videos search', function () { | |||
25 | before(async function () { | 25 | before(async function () { |
26 | this.timeout(120000) | 26 | this.timeout(120000) |
27 | 27 | ||
28 | servers = await flushAndRunMultipleServers(2) | 28 | servers = await createMultipleServers(2) |
29 | 29 | ||
30 | await setAccessTokensToServers(servers) | 30 | await setAccessTokensToServers(servers) |
31 | 31 | ||