diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-13 12:44:52 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-13 12:44:52 +0300 |
commit | 2a0ead2c4730110c898127660fe6600155539f0c (patch) | |
tree | 35d9ac1ab2f78a227e6bfeb542c309711bb3d558 /spec/support/sidekiq.rb | |
parent | 388abbd10c043b4cc406fa717e05dd81b0858c02 (diff) |
Implement draining scheduled sets of background migrations
Diffstat (limited to 'spec/support/sidekiq.rb')
-rw-r--r-- | spec/support/sidekiq.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/sidekiq.rb b/spec/support/sidekiq.rb index 5478fea4e64..d143014692d 100644 --- a/spec/support/sidekiq.rb +++ b/spec/support/sidekiq.rb @@ -8,4 +8,8 @@ RSpec.configure do |config| config.after(:each, :sidekiq) do Sidekiq::Worker.clear_all end + + config.after(:each, :sidekiq, :redis) do + Sidekiq.redis { |redis| redis.flushdb } + end end |