Skip to content

Commit

Permalink
Failing spec for pin on redis instance
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Nov 14, 2022
1 parent 29a9517 commit 3ff2d1b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec/datadog/tracing/contrib/redis/miniapp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 3ff2d1b

Please sign in to comment.