Skip to content

Commit 37f646d

Browse files
committed
tests: made a test case more deterministic for GC.
1 parent 127bd31 commit 37f646d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/129-ssl-socket.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,8 @@ SSL reused session
14391439
14401440
do
14411441
1442+
local sessions = {}
1443+
14421444
for i = 1, 3 do
14431445
local ok, err = sock:connect("iscribblet.org", 443)
14441446
if not ok then
@@ -1454,6 +1456,8 @@ SSL reused session
14541456
return
14551457
end
14561458
1459+
sessions[i] = session
1460+
14571461
ngx.say("ssl handshake: ", type(session))
14581462
14591463
local ok, err = sock:setkeepalive()

0 commit comments

Comments
 (0)