From eb99f4bfb734f8f87de738de6a431ecde56e156f Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Thu, 15 Jun 2023 17:54:00 +0200 Subject: [PATCH] Fix issues seen by sonarcloud --- tests/integration/scenarios/dash_forced-subtitles.js | 2 +- tests/performance/src/main.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/scenarios/dash_forced-subtitles.js b/tests/integration/scenarios/dash_forced-subtitles.js index 1bc48686d1a..685264d3d7e 100644 --- a/tests/integration/scenarios/dash_forced-subtitles.js +++ b/tests/integration/scenarios/dash_forced-subtitles.js @@ -85,7 +85,7 @@ describe("DASH forced-subtitles content (SegmentTimeline)", function () { reject(err); } }); - loadContent(); + loadContent().catch(reject); }); }); }); diff --git a/tests/performance/src/main.js b/tests/performance/src/main.js index 03401762210..c1eb6eefb1a 100644 --- a/tests/performance/src/main.js +++ b/tests/performance/src/main.js @@ -43,6 +43,9 @@ function sendLog(log) { headers: { "Content-Type": "application/json" }, method: "POST", body: JSON.stringify({ type: "log", data: log }), + }).catch(err => { + // eslint-disable-next-line no-console + console.error("Error: Cannot send log due to a request error.", err); }); }