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/video-comments.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/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index adb59bd74..9709e0628 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts | |||
@@ -6,8 +6,8 @@ import { | |||
6 | cleanupTests, | 6 | cleanupTests, |
7 | CommentsCommand, | 7 | CommentsCommand, |
8 | dateIsValid, | 8 | dateIsValid, |
9 | flushAndRunServer, | 9 | createSingleServer, |
10 | ServerInfo, | 10 | PeerTubeServer, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | testImage | 12 | testImage |
13 | } from '@shared/extra-utils' | 13 | } from '@shared/extra-utils' |
@@ -15,7 +15,7 @@ import { | |||
15 | const expect = chai.expect | 15 | const expect = chai.expect |
16 | 16 | ||
17 | describe('Test video comments', function () { | 17 | describe('Test video comments', function () { |
18 | let server: ServerInfo | 18 | let server: PeerTubeServer |
19 | let videoId: number | 19 | let videoId: number |
20 | let videoUUID: string | 20 | let videoUUID: string |
21 | let threadId: number | 21 | let threadId: number |
@@ -28,7 +28,7 @@ describe('Test video comments', function () { | |||
28 | before(async function () { | 28 | before(async function () { |
29 | this.timeout(30000) | 29 | this.timeout(30000) |
30 | 30 | ||
31 | server = await flushAndRunServer(1) | 31 | server = await createSingleServer(1) |
32 | 32 | ||
33 | await setAccessTokensToServers([ server ]) | 33 | await setAccessTokensToServers([ server ]) |
34 | 34 | ||