Skip to content

Commit 3b42b8b

Browse files
committed
tests: avoided solving IPv6 addresses.
1 parent 0a1de31 commit 3b42b8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

t/023-rewrite/tcp-socket.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ attempt to send data on a closed socket:
204204
--- timeout: 10
205205
--- config
206206
server_tokens off;
207-
resolver $TEST_NGINX_RESOLVER;
207+
resolver $TEST_NGINX_RESOLVER ipv6=off;
208208
resolver_timeout 3s;
209209
location /t {
210210
rewrite_by_lua '
@@ -296,7 +296,7 @@ qr/connect\(\) failed \(\d+: Connection refused\)/
296296
297297
=== TEST 6: connection timeout (tcp)
298298
--- config
299-
resolver $TEST_NGINX_RESOLVER;
299+
resolver $TEST_NGINX_RESOLVER ipv6=off;
300300
lua_socket_connect_timeout 100ms;
301301
lua_socket_send_timeout 100ms;
302302
lua_socket_read_timeout 100ms;
@@ -372,7 +372,7 @@ connected: 1
372372
=== TEST 8: resolver error (host not found)
373373
--- config
374374
server_tokens off;
375-
resolver $TEST_NGINX_RESOLVER;
375+
resolver $TEST_NGINX_RESOLVER ipv6=off;
376376
resolver_timeout 3s;
377377
location /t {
378378
rewrite_by_lua '
@@ -415,7 +415,7 @@ attempt to send data on a closed socket
415415
=== TEST 9: resolver error (timeout)
416416
--- config
417417
server_tokens off;
418-
resolver 8.8.8.8;
418+
resolver $TEST_NGINX_RESOLVER ipv6=off;
419419
resolver_timeout 1ms;
420420
location /t {
421421
rewrite_by_lua '

t/058-tcp-socket.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ resolve name done
20382038
20392039
=== TEST 34: github issue #215: Handle the posted requests in lua cosocket api (successfully resolved)
20402040
--- config
2041-
resolver $TEST_NGINX_RESOLVER;
2041+
resolver $TEST_NGINX_RESOLVER ipv6=off;
20422042
resolver_timeout 5s;
20432043
20442044
location = /sub {

0 commit comments

Comments
 (0)