diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 2 | ||||
-rw-r--r-- | server/tests/shared/checks.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index ecdd36613..854958f80 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.ts | |||
@@ -207,7 +207,7 @@ describe('Test multiple servers', function () { | |||
207 | }, | 207 | }, |
208 | { | 208 | { |
209 | resolution: 720, | 209 | resolution: 720, |
210 | size: 788000 | 210 | size: 750000 |
211 | } | 211 | } |
212 | ], | 212 | ], |
213 | thumbnailfile: 'thumbnail', | 213 | thumbnailfile: 'thumbnail', |
diff --git a/server/tests/shared/checks.ts b/server/tests/shared/checks.ts index 8c8260088..dcc16d7ea 100644 --- a/server/tests/shared/checks.ts +++ b/server/tests/shared/checks.ts | |||
@@ -35,8 +35,8 @@ async function testImage (url: string, imageName: string, imageHTTPPath: string, | |||
35 | const body = res.body | 35 | const body = res.body |
36 | 36 | ||
37 | const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension)) | 37 | const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension)) |
38 | const minLength = data.length - ((30 * data.length) / 100) | 38 | const minLength = data.length - ((40 * data.length) / 100) |
39 | const maxLength = data.length + ((30 * data.length) / 100) | 39 | const maxLength = data.length + ((40 * data.length) / 100) |
40 | 40 | ||
41 | expect(body.length).to.be.above(minLength, 'the generated image is way smaller than the recorded fixture') | 41 | expect(body.length).to.be.above(minLength, 'the generated image is way smaller than the recorded fixture') |
42 | expect(body.length).to.be.below(maxLength, 'the generated image is way larger than the recorded fixture') | 42 | expect(body.length).to.be.below(maxLength, 'the generated image is way larger than the recorded fixture') |