Skip to content

Commit ce525fb

Browse files
committed
tests: made tests less likely to fail due to bad network.
1 parent 75b0394 commit ce525fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/087-udp-socket.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ lua udp socket receive buffer size: 8192
667667

668668
=== TEST 12: github issue #215: Handle the posted requests in lua cosocket api (failed to resolve)
669669
--- config
670-
resolver $TEST_NGINX_RESOLVER;
670+
resolver $TEST_NGINX_RESOLVER ipv6=off;
671+
resolver_timeout 5s;
671672

672673
location = /sub {
673674
content_by_lua '
@@ -704,12 +705,13 @@ resolve name done
704705

705706
--- no_error_log
706707
[error]
708+
--- timeout: 10
707709

708710

709711

710712
=== TEST 13: github issue #215: Handle the posted requests in lua cosocket api (successfully resolved)
711713
--- config
712-
resolver $TEST_NGINX_RESOLVER;
714+
resolver $TEST_NGINX_RESOLVER ipv6=off;
713715
resolver_timeout 5s;
714716

715717
location = /sub {

0 commit comments

Comments
 (0)