Skip to content

Commit

Permalink
Merge pull request #3934 from DataDog/ivoanjo/fix-gvl-profling-except…
Browse files Browse the repository at this point in the history
…ion-flaky

[PROF-10422] Fix flaky spec in profiler due to race
  • Loading branch information
ivoanjo authored Sep 20, 2024
2 parents 3ff7052 + c8d5351 commit 8b00268
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@

it do
expect(Datadog.logger).to receive(:warn).with(/GVL profiling is not supported/)
proc_called = Queue.new

cpu_and_wall_time_worker.start
cpu_and_wall_time_worker.start(on_failure_proc: proc { proc_called << true })

proc_called.pop
end
end

Expand Down

0 comments on commit 8b00268

Please sign in to comment.