Skip to content

Commit

Permalink
Run test for metric :yjit_alloc_size if Ruby.version >= 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MITSUBOSHI committed Jun 7, 2024
1 parent afdad2b commit d008028
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/datadog/core/runtime/metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@
.with(Datadog::Core::Runtime::Ext::Metrics::METRIC_YJIT_OUTLINED_CODE_SIZE, kind_of(Numeric))
.once

expect(runtime_metrics).to have_received(:gauge)
.with(Datadog::Core::Runtime::Ext::Metrics::METRIC_YJIT_YJIT_ALLOC_SIZE, kind_of(Numeric))
.once
if RUBY_VERSION >= '3.3.0'
expect(runtime_metrics).to have_received(:gauge)
.with(Datadog::Core::Runtime::Ext::Metrics::METRIC_YJIT_YJIT_ALLOC_SIZE, kind_of(Numeric))
.once
end
end
end
end
Expand Down

0 comments on commit d008028

Please sign in to comment.