diff --git a/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleClientSecretGeneratorTests.cs b/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleClientSecretGeneratorTests.cs index 47646303e..2dd03c8a5 100644 --- a/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleClientSecretGeneratorTests.cs +++ b/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleClientSecretGeneratorTests.cs @@ -79,7 +79,7 @@ await GenerateTokenAsync(Configure, async (context) => Case.Sensitive, "JWT payload contains unexpected additional claims."); - securityToken.Payload.IssuedAt.ShouldBeGreaterThanOrEqualTo(utcNow.UtcDateTime); + securityToken.Payload.IssuedAt.ShouldBeGreaterThanOrEqualTo(utcNow.UtcDateTime.AddSeconds(-utcNow.Second)); ((long)securityToken.Payload.Expiration!.Value).ShouldBeGreaterThanOrEqualTo(utcNow.AddSeconds(60).ToUnixTimeSeconds()); ((long)securityToken.Payload.Expiration.Value).ShouldBeLessThanOrEqualTo(utcNow.AddSeconds(70).ToUnixTimeSeconds()); }); diff --git a/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleTests.cs b/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleTests.cs index b6ce0c853..15ffbe8b2 100644 --- a/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleTests.cs +++ b/test/AspNet.Security.OAuth.Providers.Tests/Apple/AppleTests.cs @@ -251,7 +251,7 @@ static void ConfigureServices(IServiceCollection services) // Assert exception.InnerException.ShouldNotBeNull(); exception.InnerException.ShouldBeOfType(); - exception.InnerException.InnerException.ShouldBeOfType(); + exception.InnerException.InnerException.ShouldBeOfType(); exception.InnerException.InnerException!.Message.ShouldNotBeNull(); exception.InnerException.InnerException.Message.ShouldStartWith("IDX"); }