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 <ferenc.geczi@ibm.com>
  • Loading branch information
Ferenc- committed Dec 4, 2023
1 parent ff9b40a commit 9e4b3e3
Showing 1 changed file with 6 additions and 6 deletions.
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 9e4b3e3

Please sign in to comment.