Skip to content

Commit

Permalink
chore: fix tests for sidekiq to support inline lua changes (#1011)
Browse files Browse the repository at this point in the history
* chore: fix tests for sidekiq to support inline lua changes to redis calls

* chore: add additional sidekiq appraisal
  • Loading branch information
ericmustin committed Nov 9, 2021
1 parent e099eca commit a8082e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions instrumentation/sidekiq/Appraisals
@@ -1,5 +1,9 @@
# frozen_string_literal: true

appraise 'sidekiq-6.3' do
gem 'sidekiq', '~> 6.3'
end

appraise 'sidekiq-6.1' do
gem 'sidekiq', '~> 6.1'
end
Expand Down
Expand Up @@ -46,7 +46,8 @@
poller.enqueue
span_names = spans.map(&:name)
_(span_names).must_include('Sidekiq::Scheduled::Poller#enqueue')
_(span_names).must_include('ZRANGEBYSCORE')
# Inline Lua uses a different redis client method in 6.3+ https://github.com/mperham/sidekiq/pull/5044
_(span_names).must_include('ZRANGEBYSCORE') if Gem.loaded_specs['sidekiq'].version < Gem::Version.new('6.3')
end

describe 'when peer_service config is set' do
Expand Down

0 comments on commit a8082e6

Please sign in to comment.