From bcca296e5875a6d3e7e7320f2a64ccf77a01ed66 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev <156273877+p-datadog@users.noreply.github.com> Date: Thu, 26 Sep 2024 09:42:21 -0400 Subject: [PATCH] DEBUG-2334 run all existing DI tests only on supported configurations (#3955) Dynamic instrumentation will not work on Ruby 2.5 and JRuby. Some unit tests will pass on those configurations, but there is no reason to run them there because they run on all of the supported configurations already. Co-authored-by: Oleg Pudeyev --- spec/datadog/di/probe_builder_spec.rb | 3 +++ spec/datadog/di/probe_spec.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spec/datadog/di/probe_builder_spec.rb b/spec/datadog/di/probe_builder_spec.rb index 0a8e7609bd3..f81c0f34ff3 100644 --- a/spec/datadog/di/probe_builder_spec.rb +++ b/spec/datadog/di/probe_builder_spec.rb @@ -1,6 +1,9 @@ +require "datadog/di/spec_helper" require "datadog/di/probe_builder" RSpec.describe Datadog::DI::ProbeBuilder do + di_test + describe ".build_from_remote_config" do let(:probe) do described_class.build_from_remote_config(rc_probe_spec) diff --git a/spec/datadog/di/probe_spec.rb b/spec/datadog/di/probe_spec.rb index e37832ac46e..e0c78aa0723 100644 --- a/spec/datadog/di/probe_spec.rb +++ b/spec/datadog/di/probe_spec.rb @@ -1,6 +1,9 @@ +require "datadog/di/spec_helper" require "datadog/di/probe" RSpec.describe Datadog::DI::Probe do + di_test + shared_context "method probe" do let(:probe) do described_class.new(id: "42", type: "foo", type_name: "Foo", method_name: "bar")