Skip to content

Commit

Permalink
fixed tests for data channel closing
Browse files Browse the repository at this point in the history
  • Loading branch information
John Judge committed May 13, 2015
1 parent 70d2886 commit 2ada7b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/dc-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ test('close connection 0 and wait for dc close notifications', function(t) {

function handleClose(peerId, datachannel, label) {
t.equal(label, 'test', 'label == test');
t.ok(datachannel.readyState, '2nd arg is a data channel');
// changed test from 'readyState' to 'close'
// jtj02 - 13 May 2015
t.ok(datachannel.close, '2nd arg is a data channel');
t.equal(typeof peerId, 'string', '1st args is a string');

closedCount += 1;
Expand Down

0 comments on commit 2ada7b9

Please sign in to comment.