Skip to content

Commit

Permalink
Accept either a connected or a completed state
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonOehlman committed Oct 28, 2014
1 parent b0fa475 commit a643a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/custom-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var uuid = require('uuid');
var connections = [];
var dcs = [];
var roomId = uuid.v4();
var validConnectionStates = ['connected', 'completed'];
// var signallingServer = 'http://rtc.io/switchboard/';
var signallingServer = location.origin;

Expand Down Expand Up @@ -42,7 +43,7 @@ test('check call active', function(t) {
conn.waitForCall(connections[index ^ 1].id, function(err, pc) {
t.ifError(err, 'call available');
t.ok(pc, 'have peer connection');
t.equal(pc.iceConnectionState, 'connected', 'call connected');
t.ok(validConnectionStates.indexOf(pc.iceConnectionState) >= 0, 'call connected');
});
});
});
Expand Down

0 comments on commit a643a35

Please sign in to comment.