Skip to content

Commit

Permalink
[spec] disable flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkan145 committed Jan 22, 2025
1 parent db124bb commit ec8e574
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/resty/concurrent/timer_pool_executor_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ local noop = function() end

describe('TimerPoolExecutor', function()
describe('worker garbage collection', function()
it('automatically checks in back old workers', function()
--- Flaky test so mark it for now
pending('automatically checks in back old workers', function()
local pool = TimerPoolExecutor.new({ max_timers = 1 })

assert(pool:post(noop):wait(timeout))
assert(pool:post(noop):wait(10))
yield()
assert.equal(0, #pool)
assert(pool:post(noop):wait(timeout))
assert(pool:post(noop):wait(10))
end)

it('puts back worker even when task crashes', function ()
pending('puts back worker even when task crashes', function ()
local pool = TimerPoolExecutor.new({ max_timers = 1 })

assert(pool:post(error, 'message'):wait(timeout))
Expand Down

0 comments on commit ec8e574

Please sign in to comment.