Permalink
Browse files

Merge pull request #41 from 3rd-Eden/master

Your async is now async
  • Loading branch information...
2 parents c540220 + fe76d06 commit 300b10808a09b92eeb20337758f921ad35ad184e @einaros einaros committed Mar 21, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −0 package.json
  2. +6 −2 test/WebSocketServer.test.js
View
@@ -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"
@@ -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,
@@ -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,

0 comments on commit 300b108

Please sign in to comment.