-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, we check exactly matching of error message return by go standard library. It's working nowaday but not guaranteed to work in upcoming go version. At least in go1.14, all the certificate expried message checking test will fail, due to the change of error message format in net/http. To fix this, we only check that error message contains the message we want, e.g certificate expired error should contain word "expired". While at it, also add some require.NoError to make sure no editor complains above "can lead to nil pointer dereference".
- Loading branch information
Showing
1 changed file
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters