Skip to content

Commit

Permalink
Fixed failing test which now expects an Unauthorized exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshchandran8182 committed Apr 23, 2024
1 parent 50dfe2e commit c3fcebc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ public async Task JwtTokenExtractor_WithValidCert_ShouldNotAllowCertSigningKey()
var cert = CreateSelfSignedCertificate(cn, from: now.AddDays(-10), to: now.AddDays(9));

// Build token extractor and use it to validate a token created from the cert
await BuildExtractorAndValidateToken(cert);
await Assert.ThrowsAnyAsync<UnauthorizedAccessException>(() => BuildExtractorAndValidateToken(cert));

DeleteKeyContainer(cn);
}
Expand Down

0 comments on commit c3fcebc

Please sign in to comment.