Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Fix tests after update to Wilson 7.0.0.
  • Loading branch information
martincostello committed Oct 10, 2023
1 parent ba2a3db commit 42ee811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ static void ConfigureServices(IServiceCollection services)
// Assert
exception.InnerException.ShouldNotBeNull();
exception.InnerException.ShouldBeOfType<SecurityTokenValidationException>();
exception.InnerException.InnerException.ShouldBeOfType<ArgumentException>();
exception.InnerException.InnerException.ShouldBeOfType<SecurityTokenMalformedException>();
exception.InnerException.InnerException!.Message.ShouldNotBeNull();
exception.InnerException.InnerException.Message.ShouldStartWith("IDX");
}
Expand Down

0 comments on commit 42ee811

Please sign in to comment.