Skip to content

Commit

Permalink
Fixing preflight test for Firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
manjeshbhargav committed Sep 7, 2023
1 parent c5d9002 commit 35f5d9e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/integration/spec/preflight.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ const runPreflight = require('../../../es5/index').runPreflight;
const getToken = require('../../lib/token');
const defaults = require('../../lib/defaults');
const { randomName } = require('../../lib/util');
const { isFirefox, isSafari } = require('../../lib/guessbrowser');
const { isSafari } = require('../../lib/guessbrowser');

const expectedProgress = [
'mediaAcquired',
'connected',
'mediaSubscribed',
'iceConnected',
'mediaStarted'
'mediaStarted',
'peerConnectionConnected'
];
if (!isFirefox) {
expectedProgress.push('peerConnectionConnected');
}

if (!isSafari) {
expectedProgress.push('dtlsConnected');
}
Expand Down

0 comments on commit 35f5d9e

Please sign in to comment.