Commit 838650d 1 parent 39309e2 commit 838650d Copy full SHA for 838650d
File tree 1 file changed +2
-2
lines changed
test-harness/tests/specs/integration
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -394,10 +394,10 @@ component extends="coldbox.system.testing.BaseTestCase" appMapping="/root" {
394
394
then ( " it should use the exp on the token for the storage timeout" , function (){
395
395
var originalTokenStorage = variables .jwtService .getTokenStorage ();
396
396
try {
397
- variables .jwtService .getTokenStorage ().clearAll ();
398
397
var tokenStorageMock = prepareMock (
399
- getWirebox (). getInstance ( " CacheTokenStorage@ cbsecurity" )
398
+ new cbsecurity . models . jwt . storages . CacheTokenStorage ( )
400
399
);
400
+ getWirebox ().autowire ( tokenStorageMock );
401
401
variables .jwtService .setTokenStorage ( tokenStorageMock );
402
402
tokenStorageMock .$( " set" , tokenStorageMock );
403
403
var expirationSeconds = 100 ;
You can’t perform that action at this time.
0 commit comments