Skip to content

Commit b6f6491

Browse files
committed
skip getLocalЅtreams/removeTrack assertions in Firefox
since getLocalStreams is legacy and should not be used anymore
1 parent 13c3c43 commit b6f6491

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

test/e2e/expectations/firefox-beta

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
ERR removeTrack after addStream for an audio/video track after removing all tracks no local streams remain AssertionError
2-
ERR removeTrack after addTrack for an audio/video track after removing all tracks no local streams remain AssertionError

test/e2e/expectations/firefox-esr

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
ERR removeTrack after addStream for an audio/video track after removing all tracks no local streams remain AssertionError
2-
ERR removeTrack after addTrack for an audio/video track after removing all tracks no local streams remain AssertionError
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
ERR removeTrack after addStream for an audio/video track after removing all tracks no local streams remain AssertionError
2-
ERR removeTrack after addTrack for an audio/video track after removing all tracks no local streams remain AssertionError

test/e2e/removeTrack.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ describe('removeTrack', () => {
114114
expect(sendersWithTrack).to.have.length(0);
115115
});
116116

117-
it('no local streams remain', () => {
117+
it('no local streams remain', function() {
118+
if (window.adapter.browserDetails.browser === 'firefox') {
119+
this.skip();
120+
}
118121
const senders = pc.getSenders();
119122
senders.forEach(sender => pc.removeTrack(sender));
120123
expect(pc.getLocalStreams()).to.have.length(0);

0 commit comments

Comments
 (0)