Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(http): fix error message of unknown issuer #1681

Merged
merged 1 commit into from Dec 7, 2021

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Dec 7, 2021

This PR fixes the error message expectations in https server tests. This should fix the CI failure in main

(The error is first observed in main 1 hour ago. It's probably caused by denoland/deno#12488)

@@ -553,7 +553,7 @@ Deno.test({
await assertThrowsAsync(
() => badConn.read(new Uint8Array(1)),
Deno.errors.InvalidData,
"invalid certificate: UnknownIssuer",
"invalid peer certificate contents: invalid peer certificate: UnknownIssuer",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should fix the error message to be less verbose in Deno. The old one seems to be on point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be hard as this error is surfaced from rustls and we'd have to manually rewrite it. I think it's not worth it.

@kt3k kt3k merged commit 3a441de into denoland:main Dec 7, 2021
@kt3k kt3k deleted the test/fix-tls-error-message branch December 7, 2021 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants