Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Oct 15, 2024
1 parent 644bbf5 commit 96cae58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion t/001-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ ok
location / {
content_by_lua_block {
local ssl = require "resty.kong.tls"
if ssl.get_request_ssl_pointer(sock) == nil then
if ssl.get_request_ssl_pointer() == nil then
ngx.say("cannot get socket")
else
ngx.say("ok")
Expand Down
4 changes: 1 addition & 3 deletions t/stream/003-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,8 @@ ok
ssl_session_tickets on;

content_by_lua_block {
assert(sock:connect("unix:$TEST_NGINX_HTML_DIR/nginx.sock"))
assert(sock:sslhandshake(nil, "example.com"))
local ssl = require "resty.kong.tls"
if ssl.get_ssl_pointer(sock) == nil then
if ssl.get_request_ssl_pointer() == nil then
ngx.say("cannot get socket")
else
ngx.say("ok")
Expand Down

0 comments on commit 96cae58

Please sign in to comment.