From e74a733024ba96d8ebf2b7d088030730fc8e18dd Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 16 Jun 2012 10:19:34 -0700 Subject: [PATCH] Fix #3448 Use listen callback in test-regress-GH-1697 --- test/simple/test-regress-GH-1697.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/simple/test-regress-GH-1697.js b/test/simple/test-regress-GH-1697.js index 18790d483a..82aed3ec8a 100644 --- a/test/simple/test-regress-GH-1697.js +++ b/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