Skip to content

Commit

Permalink
Disable GC profiling in spec to avoid dealing with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Sep 18, 2024
1 parent ea2bb1b commit 82aa51a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/datadog/profiling/component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,11 @@
end

context "when GVL profiling is requested" do
before { settings.profiling.advanced.preview_gvl_enabled = true }
before do
settings.profiling.advanced.preview_gvl_enabled = true
# This triggers a warning in some Rubies so it's easier for testing to disable it
settings.profiling.advanced.gc_enabled = false
end

context "on Ruby < 3.3" do
before { skip "Behavior does not apply to current Ruby version" if RUBY_VERSION >= "3.3." }
Expand Down

0 comments on commit 82aa51a

Please sign in to comment.