diff --git a/activejob/test/support/integration/adapters/sidekiq.rb b/activejob/test/support/integration/adapters/sidekiq.rb
index <HASH>..<HASH> 100644
--- a/activejob/test/support/integration/adapters/sidekiq.rb
+++ b/activejob/test/support/integration/adapters/sidekiq.rb
@@ -53,11 +53,20 @@ module SidekiqJobsManager
 
       require "sidekiq/cli"
       require "sidekiq/launcher"
-      config = Sidekiq
-      config[:queues] = ["integration_tests"]
-      config[:environment] = "test"
-      config[:concurrency] = 1
-      config[:timeout] = 1
+      if Sidekiq.respond_to?(:[]=)
+        config = Sidekiq
+        config[:queues] = ["integration_tests"]
+        config[:environment] = "test"
+        config[:concurrency] = 1
+        config[:timeout] = 1
+      else
+        config = {
+          queues: ["integration_tests"],
+          environment: "test",
+          concurrency: 1,
+          timeout: 1
+        }
+      end
       sidekiq = Sidekiq::Launcher.new(config)
       Sidekiq.average_scheduled_poll_interval = 0.5
       Sidekiq.options[:poll_interval_average] = 1
Work around Sidekiq <I> and <I> API difference