This is an automated email from the ASF dual-hosted git repository.
shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new ab16d99 test: save a port in the test framework (#4677)
ab16d99 is described below
commit ab16d9956fe3be49fdaa196e93767321c0038a7e
Author: 罗泽轩 <[email protected]>
AuthorDate: Sun Aug 1 04:10:50 2021 +0800
test: save a port in the test framework (#4677)
Signed-off-by: spacewander <[email protected]>
---
t/APISIX.pm | 2 +-
t/lib/test_admin.lua | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/APISIX.pm b/t/APISIX.pm
index 4c615a8..706d29c 100644
--- a/t/APISIX.pm
+++ b/t/APISIX.pm
@@ -590,7 +590,7 @@ _EOC_
my $TEST_NGINX_HTML_DIR = $ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
my $ipv6_listen_conf = '';
if (defined $block->listen_ipv6) {
- $ipv6_listen_conf = "listen \[::1\]:12345;"
+ $ipv6_listen_conf = "listen \[::1\]:1984;"
}
my $config = $block->config // '';
diff --git a/t/lib/test_admin.lua b/t/lib/test_admin.lua
index 88a3496..5553d50 100644
--- a/t/lib/test_admin.lua
+++ b/t/lib/test_admin.lua
@@ -67,7 +67,7 @@ local methods = {
function _M.test_ipv6(uri)
local sock = ngx.socket.tcp()
- local ok, err = sock:connect("[::1]", 12345)
+ local ok, err = sock:connect("[::1]", 1984)
if not ok then
ngx.say("failed to connect: ", err)
return