Skip to content

Commit

Permalink
Made the async tests async, added missing dep to the package
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Mar 21, 2012
1 parent c540220 commit fe76d06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"devDependencies": {
"mocha": "0.8.x",
"should": "0.4.2",
"expect.js": "0.1.2",
"benchmark": "0.3.x",
"tinycolor": "0.x",
"ansi": "latest"
Expand Down
8 changes: 6 additions & 2 deletions test/WebSocketServer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ describe('WebSocketServer', function() {

it('client can be denied asynchronously', function(done) {
var wss = new WebSocketServer({port: ++port, verifyClient: function(o, cb) {
cb(false);
process.nextTick(function() {
cb(false);
});
}}, function() {
var options = {
port: port,
Expand Down Expand Up @@ -535,7 +537,9 @@ describe('WebSocketServer', function() {

it('client can be accepted asynchronously', function(done) {
var wss = new WebSocketServer({port: ++port, verifyClient: function(o, cb) {
cb(true);
process.nextTick(function() {
cb(true);
});
}}, function() {
var options = {
port: port,
Expand Down

0 comments on commit fe76d06

Please sign in to comment.