Skip to content

Commit

Permalink
OpenSSL 1.1.1 test compatibility fix
Browse files Browse the repository at this point in the history
OpenSSL seems to send different alerts now.
  • Loading branch information
ctz committed Sep 13, 2018
1 parent e96371b commit ce90e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/errors.rs
Expand Up @@ -14,7 +14,7 @@ fn no_tls12() {
.verbose()
.fails()
.expect_log("TLS alert received:")
.expect(r"TLS error: AlertReceived\(HandshakeFailure\)")
.expect(r"TLS error: AlertReceived\((HandshakeFailure|ProtocolVersion)\)")
.go();
}

Expand Down Expand Up @@ -47,6 +47,6 @@ fn tls11_only() {
.verbose()
.fails()
.expect_log("TLS alert received:")
.expect(r"TLS error: AlertReceived\(HandshakeFailure\)")
.expect(r"TLS error: AlertReceived\((HandshakeFailure|ProtocolVersion)\)")
.go();
}

0 comments on commit ce90e3e

Please sign in to comment.