We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a2fe7 commit 10ed8daCopy full SHA for 10ed8da
errors/error_test.go
@@ -240,7 +240,8 @@ func TestWrap(t *testing.T) {
240
if err.ErrorCode != int(CertificateError)+int(VerifyFailed)+certificateInvalid+int(x509.Expired) {
241
t.Fatal("Error code construction failed.")
242
}
243
- if err.Message != "x509: certificate has expired or is not yet valid" {
+ errorString := "x509: certificate has expired or is not yet valid:"
244
+ if err.Message[:49] != errorString[:49] {
245
t.Fatal("Error message construction failed.")
246
247
0 commit comments