@@ -15,21 +15,6 @@ function startRedis (conf, done, port) {
15
15
} , path . resolve ( __dirname , conf ) , port ) ;
16
16
}
17
17
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
-
33
18
// don't start redis every time we
34
19
// include this helper file!
35
20
if ( ! process . env . REDIS_TESTS_STARTED ) {
@@ -52,8 +37,19 @@ module.exports = {
52
37
rp . stop ( done ) ;
53
38
} ,
54
39
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
+ } ,
57
53
isNumber : function ( expected , done ) {
58
54
return function ( err , results ) {
59
55
assert . strictEqual ( null , err , "expected " + expected + ", got error: " + err ) ;
0 commit comments