Skip to content

Commit

Permalink
test: added second parameter to helper to aid w testing namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 17, 2012
1 parent deefa7b commit 28a19bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ var request = require('supertest');
var expect = require('expect.js');

// creates a socket.io client for the given server
function client(srv){
function client(srv, nsp){
var addr = srv.address();
if (!addr) addr = srv.listen().address();
return ioc('ws://' + addr.address + ':' + addr.port);
return ioc('ws://' + addr.address + ':' + addr.port + (nsp || ''));
}

describe('socket.io', function(){
Expand Down

0 comments on commit 28a19bf

Please sign in to comment.