aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/redundancy.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-10 15:35:20 +0200
committerChocobozzz <me@florianbigard.com>2020-06-10 15:35:20 +0200
commitf9b6d51f484010ff2d312afa10fd55472444d8f2 (patch)
tree54bbf23876f7cafe354024faf8642dec2409cd4e /server/tests/api/check-params/redundancy.ts
parentad031145a9385871870a40419bbfda9aed1d5b6b (diff)
downloadPeerTube-f9b6d51f484010ff2d312afa10fd55472444d8f2.tar.gz
PeerTube-f9b6d51f484010ff2d312afa10fd55472444d8f2.tar.zst
PeerTube-f9b6d51f484010ff2d312afa10fd55472444d8f2.zip
Fix tests
Diffstat (limited to 'server/tests/api/check-params/redundancy.ts')
-rw-r--r--server/tests/api/check-params/redundancy.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/api/check-params/redundancy.ts b/server/tests/api/check-params/redundancy.ts
index b2370a094..18d2b8dde 100644
--- a/server/tests/api/check-params/redundancy.ts
+++ b/server/tests/api/check-params/redundancy.ts
@@ -14,7 +14,7 @@ import {
14 makePutBodyRequest, 14 makePutBodyRequest,
15 ServerInfo, 15 ServerInfo,
16 setAccessTokensToServers, uploadVideoAndGetId, 16 setAccessTokensToServers, uploadVideoAndGetId,
17 userLogin, waitJobs 17 userLogin, waitJobs, getVideoIdFromUUID
18} from '../../../../shared/extra-utils' 18} from '../../../../shared/extra-utils'
19 19
20describe('Test server redundancy API validators', function () { 20describe('Test server redundancy API validators', function () {
@@ -42,9 +42,12 @@ describe('Test server redundancy API validators', function () {
42 userAccessToken = await userLogin(servers[0], user) 42 userAccessToken = await userLogin(servers[0], user)
43 43
44 videoIdLocal = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video' })).id 44 videoIdLocal = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video' })).id
45 videoIdRemote = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video' })).id 45
46 const remoteUUID = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video' })).uuid
46 47
47 await waitJobs(servers) 48 await waitJobs(servers)
49
50 videoIdRemote = await getVideoIdFromUUID(servers[0].url, remoteUUID)
48 }) 51 })
49 52
50 describe('When listing redundancies', function () { 53 describe('When listing redundancies', function () {