From d82d8ad60c467958412dd6bfb3e8119a3f533a37 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Sep 2018 10:16:12 +0200 Subject: Fix redundancy tests --- server/tests/api/server/redundancy.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'server') diff --git a/server/tests/api/server/redundancy.ts b/server/tests/api/server/redundancy.ts index f4ae4c065..9b3b1b4ad 100644 --- a/server/tests/api/server/redundancy.ts +++ b/server/tests/api/server/redundancy.ts @@ -143,19 +143,20 @@ async function check2Webseeds (strategy: VideoRedundancyStrategy, videoUUID?: st for (const file of video.files) { checkMagnetWebseeds(file, webseeds, server) + + // Only servers 1 and 2 have the video + if (server.serverNumber !== 3) { + await makeGetRequest({ + url: server.url, + statusCodeExpected: 200, + path: '/static/webseed/' + `${videoUUID}-${file.resolution.id}.mp4`, + contentType: null + }) + } } } } - for (const url of [ 'http://localhost:9001', 'http://localhost:9002' ]) { - await makeGetRequest({ - url, - statusCodeExpected: 200, - path: '/static/webseed/' + videoUUID, - contentType: null - }) - } - for (const directory of [ 'test1', 'test2' ]) { const files = await readdir(join(root(), directory, 'videos')) expect(files).to.have.length.at.least(4) -- cgit v1.2.3