Skip to content

Commit

Permalink
Update media_manager.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 5, 2024
1 parent afca476 commit 390a105
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/test/js/media_manager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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();
Expand All @@ -790,8 +789,6 @@ describe("MediaManager", function () {
navigator.mediaDevices.getUserMedia.restore();
window.Worker.restore();
});
*/

/*
it("should handle cleanup correctly on stream end", async function () {
Expand Down

0 comments on commit 390a105

Please sign in to comment.