Skip to content

Commit 70dd0be

Browse files
committed
tests: fixed a test case in 068-socket-keepalive.t which always fails when a local dns server is running.
1 parent 9750a81 commit 70dd0be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/068-socket-keepalive.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,8 +2644,8 @@ lua tcp socket connect timed out, when connecting to
26442644
26452645
=== TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved)
26462646
--- config
2647-
resolver 127.0.0.1 ipv6=off;
2648-
resolver_timeout 100ms;
2647+
resolver agentzh.org:12345 ipv6=off;
2648+
resolver_timeout 1s;
26492649
location /t {
26502650
set $port $TEST_NGINX_MEMCACHED_PORT;
26512651
@@ -2657,7 +2657,7 @@ lua tcp socket connect timed out, when connecting to
26572657
local sock = ngx.socket.tcp()
26582658
local ok, err
26592659
if should_timeout then
2660-
sock:settimeouts(100, 3000, 3000)
2660+
sock:settimeouts(1, 3000, 3000)
26612661
ok, err = sock:connect("agentzh.org", 12345, opts)
26622662
else
26632663
ok, err = sock:connect("127.0.0.1", port, opts)

0 commit comments

Comments
 (0)