This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/tests/UnitTests/Authentication Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ public void ShouldConnectSetCredentialsTokenAndSave()
392
392
keychainAdapter . Credential . Token . Should ( ) . Be ( token ) ;
393
393
keychainAdapter . OctokitCredentials . AuthenticationType . Should ( ) . Be ( AuthenticationType . Basic ) ;
394
394
keychainAdapter . OctokitCredentials . Login . Should ( ) . Be ( username ) ;
395
- keychainAdapter . OctokitCredentials . Password . Should ( ) . Be ( password ) ;
395
+ keychainAdapter . OctokitCredentials . Password . Should ( ) . Be ( token ) ;
396
396
397
397
keychain . Save ( hostUri ) . Wait ( ) ;
398
398
@@ -472,10 +472,7 @@ public void ShouldConnectSetCredentialsAndClear()
472
472
473
473
keychain . Clear ( hostUri , false ) . Wait ( ) ;
474
474
475
- keychainAdapter . Credential . Should ( ) . NotBeNull ( ) ;
476
- keychainAdapter . Credential . Host . Should ( ) . Be ( hostUri ) ;
477
- keychainAdapter . Credential . Username . Should ( ) . Be ( username ) ;
478
- keychainAdapter . Credential . Token . Should ( ) . Be ( password ) ;
475
+ keychainAdapter . Credential . Should ( ) . BeNull ( ) ;
479
476
keychainAdapter . OctokitCredentials . AuthenticationType . Should ( ) . Be ( AuthenticationType . Anonymous ) ;
480
477
keychainAdapter . OctokitCredentials . Login . Should ( ) . BeNull ( ) ;
481
478
keychainAdapter . OctokitCredentials . Password . Should ( ) . BeNull ( ) ;
You can’t perform that action at this time.
0 commit comments