From 3ff2d1b5cca479c6edab63a40e3eb5c97ffb62df Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Thu, 10 Nov 2022 11:45:53 +0100 Subject: [PATCH] Failing spec for pin on redis instance --- spec/datadog/tracing/contrib/redis/miniapp_spec.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spec/datadog/tracing/contrib/redis/miniapp_spec.rb b/spec/datadog/tracing/contrib/redis/miniapp_spec.rb index acc52accb3..21c023a7c2 100644 --- a/spec/datadog/tracing/contrib/redis/miniapp_spec.rb +++ b/spec/datadog/tracing/contrib/redis/miniapp_spec.rb @@ -14,16 +14,8 @@ before do Datadog.configure { |c| c.tracing.instrument :redis } - # Configure client instance with custom options - Datadog.configure_onto(client, service_name: 'test-service') - end - - let(:client) do - if Gem::Version.new(::Redis::VERSION) >= Gem::Version.new('4.0.0') - redis._client - else - redis.client - end + # Configure redis instance with custom options + Datadog.configure_onto(redis, service_name: 'test-service') end let(:redis) { Redis.new(host: host, port: port) }