From 6013ee7f900769f70124999df28bfa3e782bd255 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 1 Mar 2016 16:37:32 +0100 Subject: [PATCH] callFuncAfter should fire the passed fn everytime called above the minimum Also pass individual ports to the redis process through --- test/helper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/helper.js b/test/helper.js index 72ce1d546f..74085772f3 100644 --- a/test/helper.js +++ b/test/helper.js @@ -8,11 +8,11 @@ var StunnelProcess = require("./lib/stunnel-process"); var rp; var stunnel_process; -function startRedis (conf, done) { +function startRedis (conf, done, port) { RedisProcess.start(function (err, _rp) { rp = _rp; return done(err); - }, path.resolve(__dirname, conf)); + }, path.resolve(__dirname, conf), port); } function startStunnel(done) { @@ -176,7 +176,7 @@ module.exports = { throw err; } i++; - if (i === max) { + if (i >= max) { func(); return true; }