aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-16 16:48:17 +0100
committerChocobozzz <me@florianbigard.com>2018-11-16 16:48:17 +0100
commit58d515e32fe1d0133435b3a5e550c6ff24906fff (patch)
treee769b2f29bdb7bb626208f72fc765ba21a54e9ab /server/tests/api
parentbabecc3c09cd4ed06fe643a97fff4bcc31c5a9be (diff)
downloadPeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.tar.gz
PeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.tar.zst
PeerTube-58d515e32fe1d0133435b3a5e550c6ff24906fff.zip
Fix images size when downloading them
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/redundancy/redundancy.ts5
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'
22import { waitJobs } from '../../utils/server/jobs' 22import { waitJobs } from '../../utils/server/jobs'
23import * as magnetUtil from 'magnet-uri' 23import * 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) {