Skip to content

Commit 348800c

Browse files
committed
FIx flaky test against GC
1 parent 2f2cb9e commit 348800c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/plugin/sidekiq_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def test_callback
2323
agent.expects(:queue_job)
2424
Sidekiq::Testing.inline! { SampleJob.perform_async(1) }
2525
assert_equal("RorVsWild::Plugin::SidekiqTest::SampleJob", agent.current_execution.name)
26-
assert_equal(1, agent.current_execution.sections.size)
27-
assert_equal("RorVsWild::Plugin::SidekiqTest::SampleJob#perform", agent.current_execution.sections[0].command)
26+
assert_equal(1, current_sections_without_gc.size)
27+
assert_equal("RorVsWild::Plugin::SidekiqTest::SampleJob#perform", current_sections_without_gc[0].command)
2828
end
2929

3030
def test_callback_on_exception

0 commit comments

Comments
 (0)