aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/redundancy/redundancy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/redundancy/redundancy.ts')
-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 c5037a541..7cfcf70e1 100644
--- a/server/tests/api/redundancy/redundancy.ts
+++ b/server/tests/api/redundancy/redundancy.ts
@@ -41,6 +41,7 @@ import { join } from 'path'
41import { VideoRedundancy, VideoRedundancyStrategy, VideoRedundancyStrategyWithManual } from '../../../../shared/models/redundancy' 41import { VideoRedundancy, VideoRedundancyStrategy, VideoRedundancyStrategyWithManual } from '../../../../shared/models/redundancy'
42import { getStats } from '../../../../shared/extra-utils/server/stats' 42import { getStats } from '../../../../shared/extra-utils/server/stats'
43import { ServerStats } from '../../../../shared/models/server/server-stats.model' 43import { ServerStats } from '../../../../shared/models/server/server-stats.model'
44import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
44 45
45const expect = chai.expect 46const expect = chai.expect
46 47
@@ -147,13 +148,13 @@ async function check2Webseeds (videoUUID?: string) {
147 148
148 await makeGetRequest({ 149 await makeGetRequest({
149 url: servers[0].url, 150 url: servers[0].url,
150 statusCodeExpected: 200, 151 statusCodeExpected: HttpStatusCode.OK_200,
151 path: '/static/redundancy/' + `${videoUUID}-${file.resolution.id}.mp4`, 152 path: '/static/redundancy/' + `${videoUUID}-${file.resolution.id}.mp4`,
152 contentType: null 153 contentType: null
153 }) 154 })
154 await makeGetRequest({ 155 await makeGetRequest({
155 url: servers[1].url, 156 url: servers[1].url,
156 statusCodeExpected: 200, 157 statusCodeExpected: HttpStatusCode.OK_200,
157 path: `/static/webseed/${videoUUID}-${file.resolution.id}.mp4`, 158 path: `/static/webseed/${videoUUID}-${file.resolution.id}.mp4`,
158 contentType: null 159 contentType: null
159 }) 160 })