Browse files

Fix #3448 Use listen callback in test-regress-GH-1697

  • Loading branch information...
1 parent 8a068ce commit e74a733024ba96d8ebf2b7d088030730fc8e18dd @isaacs isaacs committed Jun 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/simple/test-regress-GH-1697.js
View
6 test/simple/test-regress-GH-1697.js
@@ -36,9 +36,11 @@ if (process.argv[2] === 'server') {
server.close();
});
});
- server.listen(1234, '127.0.0.1');
- console.log('Server running.');
+ server.listen(1234, '127.0.0.1', function() {
+ console.log('Server running.');
+ });
+
} else {
// Client

0 comments on commit e74a733

Please sign in to comment.