Skip to content

Conversation

@drakkan
Copy link
Contributor

@drakkan drakkan commented Mar 22, 2023

No description provided.

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

thank you! i just had minor comments

t.Fatal("expected error")
}
// in Go 1.20 the error is wrapped in tls.CertificateVerificationError
if errWrapped := errors.Unwrap(err); errWrapped != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

could this use errors.As so that the test also checks that the outer error is CertificateVerificationError?

if err == nil {
t.Fatal("expected error")
}
if errWrapped := errors.Unwrap(err); errWrapped != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

and similar for here

@otan
Copy link
Collaborator

otan commented Apr 28, 2023

using #1124

@otan otan closed this Apr 28, 2023
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.

3 participants