Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/spec/platform/web/session-description-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ class SessionDescriptionHandlerTimeoutTest extends SessionDescriptionHandler {
}

describe("Web SessionDescriptionHandler", () => {
// One track held for the file's whole run keeps Chrome's shared fake-device
// session open. Without it every spec boundary drops the consumer count to
// zero, the session starts an asynchronous teardown, and the next spec's
// getUserMedia occasionally joins the dying session and fails with
// NotReadableError: Could not start audio source.
let keepAliveStream: MediaStream;
beforeAll(async () => {
keepAliveStream = await navigator.mediaDevices.getUserMedia({ audio: true });
});
afterAll(() => {
keepAliveStream.getTracks().forEach((track) => track.stop());
});

beforeEach(() => {
// jasmine.clock().install();
});
Expand Down