mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix sidekiq test order dependency
Requiring sidekiq/testing changes stuff, so we need to counteract that after we do so. And given its potential to confuse things, let's do it up front, at a predictable point.
This commit is contained in:
parent
a2bf755c61
commit
2ca8545e51
2 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,6 @@ class QueuingTest < ActiveSupport::TestCase
|
|||
|
||||
test 'should supply a wrapped class name to Sidekiq' do
|
||||
skip unless adapter_is?(:sidekiq)
|
||||
require 'sidekiq/testing'
|
||||
|
||||
Sidekiq::Testing.fake! do
|
||||
::HelloJob.perform_later
|
||||
hash = ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper.jobs.first
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
require 'sidekiq/api'
|
||||
|
||||
require 'sidekiq/testing'
|
||||
Sidekiq::Testing.disable!
|
||||
|
||||
module SidekiqJobsManager
|
||||
|
||||
def setup
|
||||
|
|
Loading…
Reference in a new issue