From 390a1053e26cdb0555f8a3cb0540a645c4998886 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Thu, 5 Dec 2024 14:10:34 +0300 Subject: [PATCH] Update media_manager.test.js --- src/test/js/media_manager.test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/test/js/media_manager.test.js b/src/test/js/media_manager.test.js index 9684aa5b..5ac8e61c 100644 --- a/src/test/js/media_manager.test.js +++ b/src/test/js/media_manager.test.js @@ -725,7 +725,6 @@ describe("MediaManager", function () { playStub.restore(); }); - /* it("should initialize and send frames to the worker", async function () { var adaptor = new WebRTCAdaptor({ websocketURL: "ws://localhost", @@ -778,9 +777,9 @@ describe("MediaManager", function () { expect(workerStub.postMessage.calledWithMatch({ type: "init" })).to.be.true; // Simulate a few frames - await new Promise((resolve) => setTimeout(resolve, 100)); + //await new Promise((resolve) => setTimeout(resolve, 100)); - expect(workerStub.postMessage.calledWithMatch({ type: "frame" })).to.be.false; + //expect(workerStub.postMessage.calledWithMatch({ type: "frame" })).to.be.false; // Cleanup and verify worker termination //mediaManager.desktopCameraCanvasDrawerTimer(); @@ -790,8 +789,6 @@ describe("MediaManager", function () { navigator.mediaDevices.getUserMedia.restore(); window.Worker.restore(); }); - - */ /* it("should handle cleanup correctly on stream end", async function () {