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/videos/single-server.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/videos/single-server.ts')
-rw-r--r-- | server/tests/api/videos/single-server.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 12c1f7b2f..c0535be09 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -6,8 +6,8 @@ import { | |||
6 | checkVideoFilesWereRemoved, | 6 | checkVideoFilesWereRemoved, |
7 | cleanupTests, | 7 | cleanupTests, |
8 | completeVideoCheck, | 8 | completeVideoCheck, |
9 | flushAndRunServer, | 9 | createSingleServer, |
10 | ServerInfo, | 10 | PeerTubeServer, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | testImage, | 12 | testImage, |
13 | wait | 13 | wait |
@@ -19,7 +19,7 @@ const expect = chai.expect | |||
19 | describe('Test a single server', function () { | 19 | describe('Test a single server', function () { |
20 | 20 | ||
21 | function runSuite (mode: 'legacy' | 'resumable') { | 21 | function runSuite (mode: 'legacy' | 'resumable') { |
22 | let server: ServerInfo = null | 22 | let server: PeerTubeServer = null |
23 | let videoId: number | string | 23 | let videoId: number | string |
24 | let videoId2: string | 24 | let videoId2: string |
25 | let videoUUID = '' | 25 | let videoUUID = '' |
@@ -94,7 +94,7 @@ describe('Test a single server', function () { | |||
94 | before(async function () { | 94 | before(async function () { |
95 | this.timeout(30000) | 95 | this.timeout(30000) |
96 | 96 | ||
97 | server = await flushAndRunServer(1) | 97 | server = await createSingleServer(1) |
98 | 98 | ||
99 | await setAccessTokensToServers([ server ]) | 99 | await setAccessTokensToServers([ server ]) |
100 | }) | 100 | }) |