diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-26 12:09:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-26 12:09:57 +0300 |
commit | e48c28ed86567f049865a590fdda4569a760ee1f (patch) | |
tree | 9925303b549d10a8df95d525495e37c03991f3db /spec/workers/ci | |
parent | a2c7a6bbd5550fa5c0cbc8b9a55b0a828f0e6d37 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/ci')
-rw-r--r-- | spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb b/spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb index 650be1e84a9..be7f7ef5c8c 100644 --- a/spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb +++ b/spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb @@ -9,6 +9,10 @@ RSpec.describe Ci::ResourceGroups::AssignResourceFromResourceGroupWorker do expect(described_class.get_deduplicate_strategy).to eq(:until_executed) end + it 'has an option to reschedule once if deduplicated' do + expect(described_class.get_deduplication_options).to include({ if_deduplicated: :reschedule_once }) + end + describe '#perform' do subject { worker.perform(resource_group_id) } |