Skip to content

Commit 99036da

Browse files
authored
tests: t/068-socket-keepalive.t: set the connection timeout to 100 ms. (#280)
to pass the test case in valgrind + mockeagain mode.
1 parent fb8c66c commit 99036da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/068-socket-keepalive.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ queue connect operation for connection pool
19271927
local sock1 = ngx.socket.connect("127.0.0.1", port, opts)
19281928
19291929
local sock2 = ngx.socket.tcp()
1930-
sock2:settimeouts(10, 3000, 3000)
1930+
sock2:settimeouts(100, 3000, 3000)
19311931
local ok, err = sock2:connect("127.0.0.1", port, opts)
19321932
if not ok then
19331933
ngx.say(err)
@@ -1942,7 +1942,7 @@ timeout
19421942
19431943
=== TEST 42: conn queuing: set timeout via lua_socket_connect_timeout
19441944
--- stream_server_config
1945-
lua_socket_connect_timeout 10ms;
1945+
lua_socket_connect_timeout 100ms;
19461946
19471947
content_by_lua_block {
19481948
local port = $TEST_NGINX_MEMCACHED_PORT

0 commit comments

Comments
 (0)