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/resumable-upload.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/resumable-upload.ts')
-rw-r--r-- | server/tests/api/videos/resumable-upload.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/resumable-upload.ts b/server/tests/api/videos/resumable-upload.ts index 2f1cf8a55..b4fc5ee09 100644 --- a/server/tests/api/videos/resumable-upload.ts +++ b/server/tests/api/videos/resumable-upload.ts | |||
@@ -8,8 +8,8 @@ import { HttpStatusCode } from '@shared/core-utils' | |||
8 | import { | 8 | import { |
9 | buildAbsoluteFixturePath, | 9 | buildAbsoluteFixturePath, |
10 | cleanupTests, | 10 | cleanupTests, |
11 | flushAndRunServer, | 11 | createSingleServer, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | setDefaultVideoChannel | 14 | setDefaultVideoChannel |
15 | } from '@shared/extra-utils' | 15 | } from '@shared/extra-utils' |
@@ -21,7 +21,7 @@ const expect = chai.expect | |||
21 | 21 | ||
22 | describe('Test resumable upload', function () { | 22 | describe('Test resumable upload', function () { |
23 | const defaultFixture = 'video_short.mp4' | 23 | const defaultFixture = 'video_short.mp4' |
24 | let server: ServerInfo | 24 | let server: PeerTubeServer |
25 | let rootId: number | 25 | let rootId: number |
26 | 26 | ||
27 | async function buildSize (fixture: string, size?: number) { | 27 | async function buildSize (fixture: string, size?: number) { |
@@ -99,7 +99,7 @@ describe('Test resumable upload', function () { | |||
99 | before(async function () { | 99 | before(async function () { |
100 | this.timeout(30000) | 100 | this.timeout(30000) |
101 | 101 | ||
102 | server = await flushAndRunServer(1) | 102 | server = await createSingleServer(1) |
103 | await setAccessTokensToServers([ server ]) | 103 | await setAccessTokensToServers([ server ]) |
104 | await setDefaultVideoChannel([ server ]) | 104 | await setDefaultVideoChannel([ server ]) |
105 | 105 | ||