Skip to content

Commit

Permalink
test: Fix rubocop findings in sidekiq test app
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed Dec 7, 2023
1 parent 233e130 commit c1ce4bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion gemfiles/sidekiq_70.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ gem "rack-test"
gem "simplecov", "~> 0.21.2"
gem "sidekiq", ">= 7.2.0"


gemspec path: "../"
12 changes: 6 additions & 6 deletions test/support/apps/sidekiq/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

sidekiq_version = Gem::Specification.find_by_name('sidekiq').version
cli = ::Sidekiq::CLI.instance
cli.parse(['sidekiq', '-r', __FILE__, '-C', File.dirname(__FILE__) + "/config.yaml"])
cli.parse(['sidekiq', '-r', __FILE__, '-C', "#{File.dirname(__FILE__)}/config.yaml"])

if sidekiq_version >= Gem::Version.new('6.5.0')
config_or_options = cli.config
else
config_or_options = cli.send :options
end
config_or_options = if sidekiq_version >= Gem::Version.new('6.5.0')
cli.config
else
cli.send :options
end

sidekiq_thread = Thread.new do
launcher = ::Sidekiq::Launcher.new(
Expand Down

0 comments on commit c1ce4bb

Please sign in to comment.