Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit ecd6601

Browse files
committed
tests
1 parent c77c7b0 commit ecd6601

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/session_spec.lua

+6
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ local function test_session(description, session_factory, session_destroy)
153153
session_destroy()
154154
else
155155
session:close()
156+
assert.are.equal(0, session.child_exit)
157+
assert.are.equal(0, session.child_signal)
156158
end
157159
closed = true
158160
end)
@@ -179,6 +181,8 @@ test_session(string.format("Session using SocketStream [%s]", socket_file), func
179181
return socket_session
180182
end, function ()
181183
child_session:close()
184+
assert.are.equal(0, child_session.child_exit)
185+
assert.are.equal(0, child_session.child_signal)
182186
socket_session:close()
183187
-- clean up leftovers if something goes wrong
184188
local fd = io.open(socket_file)
@@ -218,6 +222,8 @@ test_session("Session using TcpStream", function ()
218222
return tcp_session
219223
end, function ()
220224
child_session:close()
225+
assert.are.equal(0, child_session.child_exit)
226+
assert.are.equal(0, child_session.child_signal)
221227
tcp_session:close()
222228
end)
223229

0 commit comments

Comments
 (0)