Skip to content

Commit 6013ee7

Browse files
author
Ruben Bridgewater
committed
callFuncAfter should fire the passed fn everytime called above the minimum
Also pass individual ports to the redis process through
1 parent 0a636f9 commit 6013ee7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ var StunnelProcess = require("./lib/stunnel-process");
88
var rp;
99
var stunnel_process;
1010

11-
function startRedis (conf, done) {
11+
function startRedis (conf, done, port) {
1212
RedisProcess.start(function (err, _rp) {
1313
rp = _rp;
1414
return done(err);
15-
}, path.resolve(__dirname, conf));
15+
}, path.resolve(__dirname, conf), port);
1616
}
1717

1818
function startStunnel(done) {
@@ -176,7 +176,7 @@ module.exports = {
176176
throw err;
177177
}
178178
i++;
179-
if (i === max) {
179+
if (i >= max) {
180180
func();
181181
return true;
182182
}

0 commit comments

Comments
 (0)