Skip to content

Commit

Permalink
Merge pull request #2314 from DataDog/fix/redis-database-flaky-spec
Browse files Browse the repository at this point in the history
Fix flaky spec with redis database index
  • Loading branch information
TonyCTHsu authored Oct 16, 2022
2 parents de82d67 + 3488e70 commit a06ca0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/datadog/tracing/contrib/redis/instrumentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# Redis instance supports 16 databases,
# the default is 0 but can be changed to any number from 0-15,
# to configure support more databases, check `redis.conf`
let(:test_database) { (0..15).to_a.sample }
# since 0 is the default, the SELECT db command would be skipped
let(:test_database) { 15 }

around do |example|
# Reset before and after each example; don't allow global state to linger.
Expand Down

0 comments on commit a06ca0e

Please sign in to comment.