Skip to content

Commit e8811e9

Browse files
author
Andrei Sidorov
committed
fix2
1 parent 725e2f5 commit e8811e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/highload_test.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ g.test_eventloop = function()
3232

3333
local collector = metrics.summary('tnt_fiber_event_loop', 'event loop time',
3434
{ [0.5] = 0.01, [0.9] = 0.01, [0.99] = 0.01, })
35-
fiber.create(function() monitor(collector) end)
35+
local fiber_object = fiber.create(function() monitor(collector) end)
3636

3737
for _ = 1, 10 do
3838
fiber.sleep(0.1)
@@ -44,4 +44,6 @@ g.test_eventloop = function()
4444
t.assert_not_inf(obs_summary.value)
4545
end
4646

47+
fiber.kill(fiber_object:id())
48+
4749
end

0 commit comments

Comments
 (0)