From 70c6a848a43868d826453da11d212fa96956fb0c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Aug 2022 14:03:09 +0200 Subject: [PATCH] Fix tests --- server/tests/api/live/live.ts | 4 ++-- server/tests/api/server/open-telemetry.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 2ca147ebe..d32036263 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts @@ -622,7 +622,7 @@ describe('Test live', function () { }) it('Should only keep the original resolution if all resolutions are disabled', async function () { - this.timeout(400_000) + this.timeout(600_000) await updateConf([]) liveVideoId = await createLiveWrapper(true) @@ -673,7 +673,7 @@ describe('Test live', function () { } before(async function () { - this.timeout(300000) + this.timeout(600_000) liveVideoId = await createLiveWrapper({ saveReplay: false, permanent: false }) liveVideoReplayId = await createLiveWrapper({ saveReplay: true, permanent: false }) diff --git a/server/tests/api/server/open-telemetry.ts b/server/tests/api/server/open-telemetry.ts index 3137a9eb6..d8b1194c6 100644 --- a/server/tests/api/server/open-telemetry.ts +++ b/server/tests/api/server/open-telemetry.ts @@ -59,7 +59,7 @@ describe('Open Telemetry', function () { }) const res = await makeRawRequest(metricsUrl, HttpStatusCode.OK_200) - expect(res.text).to.contain('peertube_playback_http_uploaded_bytes_total{') + expect(res.text).to.contain('peertube_playback_http_downloaded_bytes_total{') }) after(async function () {