Skip to content

Commit

Permalink
tests: fixed test failures in 129-ssl-socket.t by relaxed the cipher …
Browse files Browse the repository at this point in the history
…checks and allow longer latency.
  • Loading branch information
agentzh committed Oct 27, 2017
1 parent 8039f7a commit d87d382
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions t/129-ssl-socket.t
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ SSL reused session

content_by_lua_block {
local sock = ngx.socket.tcp()
sock:settimeout(2000)
sock:settimeout(3000)

do
local ok, err = sock:connect("openresty.org", 443)
Expand Down Expand Up @@ -1122,9 +1122,11 @@ close: 1 nil
qr/^lua ssl save session: ([0-9A-F]+):2
lua ssl free session: ([0-9A-F]+):1
$/
--- error_log
lua ssl server name: "openresty.org"
SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2
--- error_log eval
[
'lua ssl server name: "openresty.org"',
qr/SSL: TLSv1\.2, cipher: "ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256) TLSv1\.2/,
]
--- no_error_log
SSL reused session
[error]
Expand Down Expand Up @@ -1271,9 +1273,11 @@ close: 1 nil
qr/^lua ssl save session: ([0-9A-F]+):2
lua ssl free session: ([0-9A-F]+):1
$/
--- error_log
lua ssl server name: "openresty.org"
SSL: TLSv1, cipher: "ECDHE-RSA-AES256-SHA
--- error_log eval
[
'lua ssl server name: "openresty.org"',
qr/SSL: TLSv1, cipher: "ECDHE-RSA-AES(?:256|128)-SHA\b/,
]
--- no_error_log
SSL reused session
[error]
Expand Down

0 comments on commit d87d382

Please sign in to comment.