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-change-ownership.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-change-ownership.ts')
-rw-r--r-- | server/tests/api/videos/video-change-ownership.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts index 352eb5ea3..cefddb68e 100644 --- a/server/tests/api/videos/video-change-ownership.ts +++ b/server/tests/api/videos/video-change-ownership.ts | |||
@@ -7,9 +7,9 @@ import { | |||
7 | ChangeOwnershipCommand, | 7 | ChangeOwnershipCommand, |
8 | cleanupTests, | 8 | cleanupTests, |
9 | doubleFollow, | 9 | doubleFollow, |
10 | flushAndRunMultipleServers, | 10 | createMultipleServers, |
11 | flushAndRunServer, | 11 | createSingleServer, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | setDefaultVideoChannel, | 14 | setDefaultVideoChannel, |
15 | waitJobs | 15 | waitJobs |
@@ -19,7 +19,7 @@ import { VideoPrivacy } from '@shared/models' | |||
19 | const expect = chai.expect | 19 | const expect = chai.expect |
20 | 20 | ||
21 | describe('Test video change ownership - nominal', function () { | 21 | describe('Test video change ownership - nominal', function () { |
22 | let servers: ServerInfo[] = [] | 22 | let servers: PeerTubeServer[] = [] |
23 | 23 | ||
24 | const firstUser = 'first' | 24 | const firstUser = 'first' |
25 | const secondUser = 'second' | 25 | const secondUser = 'second' |
@@ -39,7 +39,7 @@ describe('Test video change ownership - nominal', function () { | |||
39 | before(async function () { | 39 | before(async function () { |
40 | this.timeout(50000) | 40 | this.timeout(50000) |
41 | 41 | ||
42 | servers = await flushAndRunMultipleServers(2) | 42 | servers = await createMultipleServers(2) |
43 | await setAccessTokensToServers(servers) | 43 | await setAccessTokensToServers(servers) |
44 | await setDefaultVideoChannel(servers) | 44 | await setDefaultVideoChannel(servers) |
45 | 45 | ||
@@ -251,7 +251,7 @@ describe('Test video change ownership - nominal', function () { | |||
251 | }) | 251 | }) |
252 | 252 | ||
253 | describe('Test video change ownership - quota too small', function () { | 253 | describe('Test video change ownership - quota too small', function () { |
254 | let server: ServerInfo | 254 | let server: PeerTubeServer |
255 | const firstUser = 'first' | 255 | const firstUser = 'first' |
256 | const secondUser = 'second' | 256 | const secondUser = 'second' |
257 | 257 | ||
@@ -263,7 +263,7 @@ describe('Test video change ownership - quota too small', function () { | |||
263 | this.timeout(50000) | 263 | this.timeout(50000) |
264 | 264 | ||
265 | // Run one server | 265 | // Run one server |
266 | server = await flushAndRunServer(1) | 266 | server = await createSingleServer(1) |
267 | await setAccessTokensToServers([ server ]) | 267 | await setAccessTokensToServers([ server ]) |
268 | 268 | ||
269 | await server.users.create({ username: secondUser, videoQuota: 10 }) | 269 | await server.users.create({ username: secondUser, videoQuota: 10 }) |