Skip to content

Commit

Permalink
Disable heap profiling spec on legacy rubies
Browse files Browse the repository at this point in the history
Oooops! This spec definitely should not be running on legacy Rubies.

It actually started to flake with a recent change, and it took me
a while to actually remember that it shouldn't even be running in
the first place.
  • Loading branch information
ivoanjo committed Jul 8, 2024
1 parent 6f8f756 commit 5da21c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@
let(:options) { { dynamic_sampling_rate_enabled: false } }

before do
skip 'Heap profiling is only supported on Ruby >= 2.7' if RUBY_VERSION < '2.7'
allow(Datadog.logger).to receive(:warn)
expect(Datadog.logger).to receive(:warn).with(/dynamic sampling rate disabled/)
end
Expand Down

0 comments on commit 5da21c1

Please sign in to comment.