Skip to content

Commit

Permalink
tests: relaxed the expected ouptut constraint in tests for testing ss…
Browse files Browse the repository at this point in the history
…l host name mismatch.
  • Loading branch information
agentzh committed Jul 4, 2017
1 parent 8827a7f commit 4527ec0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions t/129-ssl-socket.t
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,11 @@ $::ComodoRootCertificate"

--- request
GET /t
--- response_body
connected: 1
failed to do SSL handshake: handshake failed
--- response_body_like chomp
\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send http request: closed
\z

--- log_level: debug
--- grep_error_log eval: qr/lua ssl (?:set|save|free) session: [0-9A-F]+:\d+/
Expand Down Expand Up @@ -504,10 +505,11 @@ $::ComodoRootCertificate"

--- request
GET /t
--- response_body
connected: 1
failed to do SSL handshake: handshake failed
--- response_body_like chomp
\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send http request: closed
\z

--- log_level: debug
--- grep_error_log eval: qr/lua ssl (?:set|save|free) session: [0-9A-F]+:\d+/
Expand Down

0 comments on commit 4527ec0

Please sign in to comment.