Skip to content

Commit

Permalink
Merge pull request websockets#41 from 3rd-Eden/master
Browse files Browse the repository at this point in the history
Your async is now async
  • Loading branch information
einaros committed Mar 21, 2012
2 parents c540220 + fe76d06 commit 300b108
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
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
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 300b108

Please sign in to comment.