aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/redundancy
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-07 14:32:36 +0100
committerGitHub <noreply@github.com>2020-12-07 14:32:36 +0100
commit2d53be0267acc49cda46707b885096193a1f4e9c (patch)
tree887061a34bc67f40acbb96a6278f9544bf83caeb /server/tests/api/redundancy
parentadc1f09c0dbd997f34028c1c82d1c118dc8ead80 (diff)
downloadPeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.gz
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.zst
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.zip
replace numbers with typed http status codes (#3409)
Diffstat (limited to 'server/tests/api/redundancy')
-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 })