Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions t/110-disconnect-trigger-check.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test:plan(2)
-- Verify that _queue_taken space is empty.
local function check_result()
if tube == nil then
os.exit(1)
return
end

-- tube:drop() is most simple way to check that _queue_taken
Expand All @@ -26,7 +26,6 @@ local function check_result()
test:is(res, true, 'tube:drop() result is true')

tnt.finish()
os.exit(test:check() and 0 or 1)
end

-- Yield in queue's on_disconnect trigger (which handles a client
Expand Down Expand Up @@ -92,7 +91,7 @@ local function test_lost_session_id_after_yield()
-- session' error in the _on_consumer_disconnect and so the
-- second on_disconnect trigger (check_result) will not be
-- fired.
os.exit(1)
os.exit(test:check() and 0 or 1)
end

test_lost_session_id_after_yield()
Expand Down