Skip to content

Commit cc0678f

Browse files
committed
fix test
1 parent a90c803 commit cc0678f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/058-tcp-socket.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# vim:set ft= ts=4 sw=4 et fdm=marker:
22

33
use Test::Nginx::Socket::Lua;
4+
use Test::Nginx::Socket::Lua::Stream;
45

56
repeat_each(2);
67

@@ -10,6 +11,7 @@ our $HtmlDir = html_dir;
1011

1112
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
1213
$ENV{TEST_NGINX_RESOLVER} ||= '8.8.8.8';
14+
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
1315

1416
#log_level 'warn';
1517
log_level 'debug';
@@ -4503,7 +4505,7 @@ reused times: 3, setkeepalive err: closed
45034505
=== TEST 74: setkeepalive with TLSv1.3
45044506
--- skip_openssl: 3: < 1.1.1
45054507
--- stream_server_config
4506-
listen 11443 ssl;
4508+
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
45074509
ssl_certificate ../../cert/test.crt;
45084510
ssl_certificate_key ../../cert/test.key;
45094511
ssl_protocols TLSv1.3;
@@ -4523,7 +4525,7 @@ reused times: 3, setkeepalive err: closed
45234525
local sock = ngx.socket.tcp()
45244526
sock:settimeout(2000)
45254527
4526-
local ok, err = sock:connect("127.0.0.1", 11443)
4528+
local ok, err = sock:connect("unix:$TEST_NGINX_HTML_DIR/nginx.sock")
45274529
if not ok then
45284530
ngx.say("failed to connect: ", err)
45294531
return

0 commit comments

Comments
 (0)