Commit 1d66df80 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'mk/fix-registry-consistency-worker-reenqueuing' into 'master'

Geo: Ensure Reenqueuer works as intended

See merge request gitlab-org/gitlab!48172
parents 36513a0e 50c4d326
......@@ -37,6 +37,7 @@ module Reenqueuer
include ReenqueuerSleeper
sidekiq_options retry: false
deduplicate :none
end
def perform(*args)
......
......@@ -10,6 +10,10 @@ RSpec.shared_examples 'reenqueuer' do
expect(subject.lease_timeout).to be_a(ActiveSupport::Duration)
end
it 'uses the :none deduplication strategy' do
expect(subject.class.get_deduplicate_strategy).to eq(:none)
end
describe '#perform' do
it 'tries to obtain a lease' do
expect_to_obtain_exclusive_lease(subject.lease_key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment