Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ba2da23

Browse files
Updating unit tests
1 parent d81336b commit ba2da23

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tests/UnitTests/Authentication/KeychainTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public void ShouldConnectSetCredentialsTokenAndSave()
392392
keychainAdapter.Credential.Token.Should().Be(token);
393393
keychainAdapter.OctokitCredentials.AuthenticationType.Should().Be(AuthenticationType.Basic);
394394
keychainAdapter.OctokitCredentials.Login.Should().Be(username);
395-
keychainAdapter.OctokitCredentials.Password.Should().Be(password);
395+
keychainAdapter.OctokitCredentials.Password.Should().Be(token);
396396

397397
keychain.Save(hostUri).Wait();
398398

@@ -472,10 +472,7 @@ public void ShouldConnectSetCredentialsAndClear()
472472

473473
keychain.Clear(hostUri, false).Wait();
474474

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();
479476
keychainAdapter.OctokitCredentials.AuthenticationType.Should().Be(AuthenticationType.Anonymous);
480477
keychainAdapter.OctokitCredentials.Login.Should().BeNull();
481478
keychainAdapter.OctokitCredentials.Password.Should().BeNull();

0 commit comments

Comments
 (0)