diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-16 16:48:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-16 16:48:17 +0100 |
commit | 58d515e32fe1d0133435b3a5e550c6ff24906fff (patch) | |
tree | e769b2f29bdb7bb626208f72fc765ba21a54e9ab /server/tests | |
parent | babecc3c09cd4ed06fe643a97fff4bcc31c5a9be (diff) | |
download | PeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.tar.gz PeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.tar.zst PeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.zip |
Fix images size when downloading them
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/redundancy/redundancy.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index 47f4e59fc..a8a2f305f 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts | |||
@@ -17,7 +17,7 @@ import { | |||
17 | viewVideo, | 17 | viewVideo, |
18 | wait, | 18 | wait, |
19 | waitUntilLog, | 19 | waitUntilLog, |
20 | checkVideoFilesWereRemoved, removeVideo | 20 | checkVideoFilesWereRemoved, removeVideo, getVideoWithToken |
21 | } from '../../utils' | 21 | } from '../../utils' |
22 | import { waitJobs } from '../../utils/server/jobs' | 22 | import { waitJobs } from '../../utils/server/jobs' |
23 | import * as magnetUtil from 'magnet-uri' | 23 | import * as magnetUtil from 'magnet-uri' |
@@ -93,7 +93,8 @@ async function check1WebSeed (strategy: VideoRedundancyStrategy, videoUUID?: str | |||
93 | 93 | ||
94 | for (const server of servers) { | 94 | for (const server of servers) { |
95 | { | 95 | { |
96 | const res = await getVideo(server.url, videoUUID) | 96 | // With token to avoid issues with video follow constraints |
97 | const res = await getVideoWithToken(server.url, server.accessToken, videoUUID) | ||
97 | 98 | ||
98 | const video: VideoDetails = res.body | 99 | const video: VideoDetails = res.body |
99 | for (const f of video.files) { | 100 | for (const f of video.files) { |