Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix multiple servers tests

Chocobozzzc47c3bcb0a92
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index ecdd366135..854958f809 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 () {
},
{
resolution: 720,
- size: 788000
+ size: 750000
}
],
thumbnailfile: 'thumbnail',
diff --git a/server/tests/shared/checks.ts b/server/tests/shared/checks.ts
index 8c82600881..dcc16d7ea4 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,
const body = res.body
const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension))
- const minLength = data.length - ((30 * data.length) / 100)
- const maxLength = data.length + ((30 * data.length) / 100)
+ const minLength = data.length - ((40 * data.length) / 100)
+ const maxLength = data.length + ((40 * data.length) / 100)
expect(body.length).to.be.above(minLength, 'the generated image is way smaller than the recorded fixture')
expect(body.length).to.be.below(maxLength, 'the generated image is way larger than the recorded fixture')