@@ -15,21 +15,6 @@ function startRedis (conf, done, port) {
1515 } , path . resolve ( __dirname , conf ) , port ) ;
1616}
1717
18- function startStunnel ( done ) {
19- StunnelProcess . start ( function ( err , _stunnel_process ) {
20- stunnel_process = _stunnel_process ;
21- return done ( err ) ;
22- } , path . resolve ( __dirname , './conf' ) ) ;
23- }
24-
25- function stopStunnel ( done ) {
26- if ( stunnel_process ) {
27- StunnelProcess . stop ( stunnel_process , done ) ;
28- } else {
29- done ( ) ;
30- }
31- }
32-
3318// don't start redis every time we
3419// include this helper file!
3520if ( ! process . env . REDIS_TESTS_STARTED ) {
@@ -52,8 +37,19 @@ module.exports = {
5237 rp . stop ( done ) ;
5338 } ,
5439 startRedis : startRedis ,
55- stopStunnel : stopStunnel ,
56- startStunnel : startStunnel ,
40+ stopStunnel : function ( done ) {
41+ if ( stunnel_process ) {
42+ StunnelProcess . stop ( stunnel_process , done ) ;
43+ } else {
44+ done ( ) ;
45+ }
46+ } ,
47+ startStunnel : function ( done ) {
48+ StunnelProcess . start ( function ( err , _stunnel_process ) {
49+ stunnel_process = _stunnel_process ;
50+ return done ( err ) ;
51+ } , path . resolve ( __dirname , './conf' ) ) ;
52+ } ,
5753 isNumber : function ( expected , done ) {
5854 return function ( err , results ) {
5955 assert . strictEqual ( null , err , "expected " + expected + ", got error: " + err ) ;
0 commit comments