fix(AuthClientTests): StartAsync_ShouldUpdateAllPublicKey aktualisiert

This commit is contained in:
Developer 02 2025-03-07 10:17:48 +01:00
parent 4e941ed35f
commit 6ac2c86520

View File

@ -194,17 +194,16 @@ public class AuthClientTests
var provider = Build(opt =>
{
opt.Url = _hubUrl;
opt.PublicKeys.Add(new AsymmetricPublicKey() { Issuer = "Foo", Audience = "Bar" });
opt.PublicKeys.Add(publicKey);
});
var client = provider.GetRequiredService<IAuthClient>();
await client.StartAsync();
// wait for network
await Task.Delay(2000);
// Act
var expectedPublicKey = _tokenDescriptors.Get("Foo", "Bar").PublicKey;
await client.GetPublicKeyAsync("Foo", "Bar");
// wait for network
await Task.Delay(2000);
// Assert
Assert.That(publicKey.Content, Is.EqualTo(expectedPublicKey.Content));