aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/redundancy/redundancy.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts
index 6f2c59076..9e8733774 100644
--- a/server/tests/api/redundancy/redundancy.ts
+++ b/server/tests/api/redundancy/redundancy.ts
@@ -66,7 +66,7 @@ async function flushAndRunServers (strategy: VideoRedundancyStrategy, additional
66 immutableAssign({ 66 immutableAssign({
67 min_lifetime: '1 hour', 67 min_lifetime: '1 hour',
68 strategy: strategy, 68 strategy: strategy,
69 size: '200KB' 69 size: '400KB'
70 }, additionalParams) 70 }, additionalParams)
71 ] 71 ]
72 } 72 }
@@ -224,8 +224,8 @@ async function checkStatsWith2Webseed (strategy: VideoRedundancyStrategy) {
224 const stat = data.videosRedundancy[0] 224 const stat = data.videosRedundancy[0]
225 225
226 expect(stat.strategy).to.equal(strategy) 226 expect(stat.strategy).to.equal(strategy)
227 expect(stat.totalSize).to.equal(204800) 227 expect(stat.totalSize).to.equal(409600)
228 expect(stat.totalUsed).to.be.at.least(1).and.below(204801) 228 expect(stat.totalUsed).to.be.at.least(1).and.below(409601)
229 expect(stat.totalVideoFiles).to.equal(4) 229 expect(stat.totalVideoFiles).to.equal(4)
230 expect(stat.totalVideos).to.equal(1) 230 expect(stat.totalVideos).to.equal(1)
231} 231}
@@ -238,7 +238,7 @@ async function checkStatsWith1Webseed (strategy: VideoRedundancyStrategy) {
238 238
239 const stat = data.videosRedundancy[0] 239 const stat = data.videosRedundancy[0]
240 expect(stat.strategy).to.equal(strategy) 240 expect(stat.strategy).to.equal(strategy)
241 expect(stat.totalSize).to.equal(204800) 241 expect(stat.totalSize).to.equal(409600)
242 expect(stat.totalUsed).to.equal(0) 242 expect(stat.totalUsed).to.equal(0)
243 expect(stat.totalVideoFiles).to.equal(0) 243 expect(stat.totalVideoFiles).to.equal(0)
244 expect(stat.totalVideos).to.equal(0) 244 expect(stat.totalVideos).to.equal(0)