diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-10 15:35:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-10 15:35:20 +0200 |
commit | f9b6d51f484010ff2d312afa10fd55472444d8f2 (patch) | |
tree | 54bbf23876f7cafe354024faf8642dec2409cd4e /server/tests/api/check-params/redundancy.ts | |
parent | ad031145a9385871870a40419bbfda9aed1d5b6b (diff) | |
download | PeerTube-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.ts | 7 |
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 | ||
20 | describe('Test server redundancy API validators', function () { | 20 | describe('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 () { |