From cd51b2dda8ac5dee5a5807d8e0b5b386ae8047b4 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Wed, 25 Sep 2024 13:09:13 -0400 Subject: [PATCH] DEBUG-2334 run all existing DI tests only on supported configurations 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. --- 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")