@@ -19,9 +19,9 @@ describe('client authentication', function () {
1919
2020 helper . allTests ( {
2121 allConnections : true
22- } , function ( parser , ip , args ) {
22+ } , function ( ip , args ) {
2323
24- describe ( 'using ' + parser + ' and ' + ip , function ( ) {
24+ describe ( 'using ' + ip , function ( ) {
2525 var auth = 'porkchopsandwiches' ;
2626 var client = null ;
2727
@@ -133,7 +133,7 @@ describe('client authentication', function () {
133133 it ( 'allows auth to be provided as config option for client' , function ( done ) {
134134 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
135135
136- var args = config . configureClient ( parser , ip , {
136+ var args = config . configureClient ( ip , {
137137 auth_pass : auth
138138 } ) ;
139139 client = redis . createClient . apply ( null , args ) ;
@@ -143,7 +143,7 @@ describe('client authentication', function () {
143143 it ( 'allows auth and no_ready_check to be provided as config option for client' , function ( done ) {
144144 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
145145
146- var args = config . configureClient ( parser , ip , {
146+ var args = config . configureClient ( ip , {
147147 password : auth ,
148148 no_ready_check : true
149149 } ) ;
@@ -154,7 +154,7 @@ describe('client authentication', function () {
154154 it ( 'allows auth to be provided post-hoc with auth method' , function ( done ) {
155155 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
156156
157- var args = config . configureClient ( parser , ip ) ;
157+ var args = config . configureClient ( ip ) ;
158158 client = redis . createClient . apply ( null , args ) ;
159159 client . auth ( auth ) ;
160160 client . on ( 'ready' , done ) ;
@@ -217,7 +217,7 @@ describe('client authentication', function () {
217217 it ( 'allows auth to be provided post-hoc with auth method again' , function ( done ) {
218218 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
219219
220- var args = config . configureClient ( parser , ip , {
220+ var args = config . configureClient ( ip , {
221221 auth_pass : auth
222222 } ) ;
223223 client = redis . createClient . apply ( null , args ) ;
@@ -229,7 +229,7 @@ describe('client authentication', function () {
229229 it ( 'does not allow any commands to be processed if not authenticated using no_ready_check true' , function ( done ) {
230230 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
231231
232- var args = config . configureClient ( parser , ip , {
232+ var args = config . configureClient ( ip , {
233233 no_ready_check : true
234234 } ) ;
235235 client = redis . createClient . apply ( null , args ) ;
@@ -258,7 +258,6 @@ describe('client authentication', function () {
258258 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
259259 client = redis . createClient ( {
260260 password : 'wrong_password' ,
261- parser : parser
262261 } ) ;
263262 client . once ( 'error' , function ( err ) {
264263 assert . strictEqual ( err . message , 'ERR invalid password' ) ;
@@ -269,7 +268,7 @@ describe('client authentication', function () {
269268 it ( 'pubsub working with auth' , function ( done ) {
270269 if ( helper . redisProcess ( ) . spawnFailed ( ) ) this . skip ( ) ;
271270
272- var args = config . configureClient ( parser , ip , {
271+ var args = config . configureClient ( ip , {
273272 password : auth
274273 } ) ;
275274 client = redis . createClient . apply ( null , args ) ;
@@ -299,7 +298,7 @@ describe('client authentication', function () {
299298 // returning the manipulated [error, result] from the callback.
300299 // There should be a better solution though
301300
302- var args = config . configureClient ( parser , 'localhost' , {
301+ var args = config . configureClient ( 'localhost' , {
303302 noReadyCheck : true
304303 } ) ;
305304 client = redis . createClient . apply ( null , args ) ;
0 commit comments