@@ -162,7 +162,7 @@ describe('redis plugin', function() {
162
162
163
163
return previous ;
164
164
} , [ ] ) ;
165
- assert . equal ( messages . length , 6 ) ;
165
+ assert . equal ( messages . length , 7 ) ;
166
166
} ) ;
167
167
it ( 'adds default config to the config object' , function ( ) {
168
168
plugin . configure ( context ) ;
@@ -200,7 +200,7 @@ describe('redis plugin', function() {
200
200
201
201
return previous ;
202
202
} , [ ] ) ;
203
- assert . equal ( messages . length , 5 ) ;
203
+ assert . equal ( messages . length , 6 ) ;
204
204
} ) ;
205
205
it ( 'does not add default config to the config object' , function ( ) {
206
206
plugin . configure ( context ) ;
@@ -239,7 +239,7 @@ describe('redis plugin', function() {
239
239
240
240
return previous ;
241
241
} , [ ] ) ;
242
- assert . equal ( messages . length , 4 ) ;
242
+ assert . equal ( messages . length , 5 ) ;
243
243
} ) ;
244
244
245
245
it ( 'does not add default config to the config object' , function ( ) {
@@ -274,13 +274,14 @@ describe('redis plugin', function() {
274
274
keyPrefix : 'test-prefix' ,
275
275
filePattern : 'tests/index.html' ,
276
276
revisionKey : '123abc' ,
277
- redisClient : function ( context ) {
277
+ redisDeployClient : function ( context ) {
278
278
return context . redisClient || new Redis ( context . config . redis ) ;
279
279
}
280
280
}
281
281
}
282
282
} ;
283
283
plugin . beforeHook ( context ) ;
284
+ plugin . configure ( context ) ;
284
285
285
286
return assert . isFulfilled ( plugin . upload ( context ) )
286
287
. then ( function ( result ) {
@@ -310,7 +311,7 @@ describe('redis plugin', function() {
310
311
keyPrefix : 'test-prefix' ,
311
312
filePattern : 'tests/index.html' ,
312
313
revisionKey : '123abc' ,
313
- redisClient : function ( context ) { return context . redisClient ; }
314
+ redisDeployClient : function ( context ) { return context . redisClient ; }
314
315
}
315
316
}
316
317
} ;
@@ -341,7 +342,7 @@ describe('redis plugin', function() {
341
342
keyPrefix : 'test-prefix' ,
342
343
filePattern : 'tests/index.html' ,
343
344
revisionKey : '123abc' ,
344
- redisClient : function ( context ) {
345
+ redisDeployClient : function ( context ) {
345
346
return context . redisClient || new Redis ( context . config . redis ) ;
346
347
}
347
348
}
0 commit comments