Skip to content

Commit

Permalink
Correctly check for different golang versions #1076 (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece authored Mar 17, 2020
1 parent 87a2fe7 commit 10ed8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion errors/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ func TestWrap(t *testing.T) {
if err.ErrorCode != int(CertificateError)+int(VerifyFailed)+certificateInvalid+int(x509.Expired) {
t.Fatal("Error code construction failed.")
}
if err.Message != "x509: certificate has expired or is not yet valid" {
errorString := "x509: certificate has expired or is not yet valid:"
if err.Message[:49] != errorString[:49] {
t.Fatal("Error message construction failed.")
}

Expand Down

0 comments on commit 10ed8da

Please sign in to comment.