From b438bba775c2ccf65809364e68a114f3efa514fe Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 23 Mar 2013 19:02:04 -0700 Subject: [PATCH] UT: Fix server stopping. --- test/testutils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testutils.js b/test/testutils.js index b81df486..39495f21 100644 --- a/test/testutils.js +++ b/test/testutils.js @@ -129,14 +129,14 @@ var build_teardown = function (host) { .connect(false); }, function stopServerStep(callback) { - if (opts.no_server) { + return callback(); + } - return callback(); - } - - data.server.on('stopped', callback).stop(); + data.server + .on('stopped', callback) + .stop(); } ], done); };