-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update go version to 1.22.1 and run go mod tidy #36
Update go version to 1.22.1 and run go mod tidy #36
Conversation
Github workflow for Go has been updated as well to avoid checking development branch since we've been just merging directly to master. Go versions 1.16-1.22 are being check, 1.13-1.15 have been dropped.
Need to get MacOS tests working |
On different platforms the error message for the underlying TLS library may differ. The message may also change between versions. In order to support multiple platforms and versions, the TestCACerts test case may now accept multiple errors messages to match against, only needing one to match to satisfy the test case.
t.Fatalf("got %v, want no error", got) | ||
} | ||
|
||
// got != nil && len(wants) > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentional, as it is documenting which case this is for.
contains := false | ||
for _, w := range wants { | ||
if strings.Contains(got.Error(), w.Error()) { | ||
contains = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can break here if you like.
Github workflow for Go has been updated as well to avoid checking development branch since we've been just merging directly to master. Go versions 1.21-1.22 are being checked, 1.13-1.20 have been dropped due to incompatibility with the new go.mod version format (X.Y.Z rather than X.Y).