@@ -19,9 +19,9 @@ describe('client authentication', function () {
19
19
20
20
helper . allTests ( {
21
21
allConnections : true
22
- } , function ( parser , ip , args ) {
22
+ } , function ( ip , args ) {
23
23
24
- describe ( 'using ' + parser + ' and ' + ip , function ( ) {
24
+ describe ( 'using ' + ip , function ( ) {
25
25
var auth = 'porkchopsandwiches' ;
26
26
var client = null ;
27
27
@@ -133,7 +133,7 @@ describe('client authentication', function () {
133
133
it ( 'allows auth to be provided as config option for client' , function ( done ) {
134
134
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
135
135
136
- var args = config . configureClient ( parser , ip , {
136
+ var args = config . configureClient ( ip , {
137
137
auth_pass : auth
138
138
} ) ;
139
139
client = redis . createClient . apply ( null , args ) ;
@@ -143,7 +143,7 @@ describe('client authentication', function () {
143
143
it ( 'allows auth and no_ready_check to be provided as config option for client' , function ( done ) {
144
144
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
145
145
146
- var args = config . configureClient ( parser , ip , {
146
+ var args = config . configureClient ( ip , {
147
147
password : auth ,
148
148
no_ready_check : true
149
149
} ) ;
@@ -154,7 +154,7 @@ describe('client authentication', function () {
154
154
it ( 'allows auth to be provided post-hoc with auth method' , function ( done ) {
155
155
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
156
156
157
- var args = config . configureClient ( parser , ip ) ;
157
+ var args = config . configureClient ( ip ) ;
158
158
client = redis . createClient . apply ( null , args ) ;
159
159
client . auth ( auth ) ;
160
160
client . on ( 'ready' , done ) ;
@@ -217,7 +217,7 @@ describe('client authentication', function () {
217
217
it ( 'allows auth to be provided post-hoc with auth method again' , function ( done ) {
218
218
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
219
219
220
- var args = config . configureClient ( parser , ip , {
220
+ var args = config . configureClient ( ip , {
221
221
auth_pass : auth
222
222
} ) ;
223
223
client = redis . createClient . apply ( null , args ) ;
@@ -229,7 +229,7 @@ describe('client authentication', function () {
229
229
it ( 'does not allow any commands to be processed if not authenticated using no_ready_check true' , function ( done ) {
230
230
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
231
231
232
- var args = config . configureClient ( parser , ip , {
232
+ var args = config . configureClient ( ip , {
233
233
no_ready_check : true
234
234
} ) ;
235
235
client = redis . createClient . apply ( null , args ) ;
@@ -258,7 +258,6 @@ describe('client authentication', function () {
258
258
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
259
259
client = redis . createClient ( {
260
260
password : 'wrong_password' ,
261
- parser : parser
262
261
} ) ;
263
262
client . once ( 'error' , function ( err ) {
264
263
assert . strictEqual ( err . message , 'ERR invalid password' ) ;
@@ -269,7 +268,7 @@ describe('client authentication', function () {
269
268
it ( 'pubsub working with auth' , function ( done ) {
270
269
if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
271
270
272
- var args = config . configureClient ( parser , ip , {
271
+ var args = config . configureClient ( ip , {
273
272
password : auth
274
273
} ) ;
275
274
client = redis . createClient . apply ( null , args ) ;
@@ -299,7 +298,7 @@ describe('client authentication', function () {
299
298
// returning the manipulated [error, result] from the callback.
300
299
// There should be a better solution though
301
300
302
- var args = config . configureClient ( parser , 'localhost' , {
301
+ var args = config . configureClient ( 'localhost' , {
303
302
noReadyCheck : true
304
303
} ) ;
305
304
client = redis . createClient . apply ( null , args ) ;
0 commit comments