diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 21:09:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 21:09:10 +0300 |
commit | 33795139ea8e72756bee3675b4e16387425e6ab1 (patch) | |
tree | 3ca568fca61482e57810ee30ad5ce4b964a82c4e /spec/lib/gitlab/sidekiq_config | |
parent | c7e385e282bcb8505589bce526e692b7bb819ffa (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/sidekiq_config')
-rw-r--r-- | spec/lib/gitlab/sidekiq_config/worker_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/lib/gitlab/sidekiq_config/worker_spec.rb b/spec/lib/gitlab/sidekiq_config/worker_spec.rb index 38edd0f5eeb..fcdce8f9432 100644 --- a/spec/lib/gitlab/sidekiq_config/worker_spec.rb +++ b/spec/lib/gitlab/sidekiq_config/worker_spec.rb @@ -12,7 +12,8 @@ describe Gitlab::SidekiqConfig::Worker do get_weight: attributes[:weight], get_worker_resource_boundary: attributes[:resource_boundary], latency_sensitive_worker?: attributes[:latency_sensitive], - worker_has_external_dependencies?: attributes[:has_external_dependencies] + worker_has_external_dependencies?: attributes[:has_external_dependencies], + idempotent?: attributes[:idempotent] ) described_class.new(inner_worker, ee: false) @@ -89,7 +90,8 @@ describe Gitlab::SidekiqConfig::Worker do has_external_dependencies: false, latency_sensitive: false, resource_boundary: :memory, - weight: 2 + weight: 2, + idempotent: true } attributes_b = { @@ -97,7 +99,8 @@ describe Gitlab::SidekiqConfig::Worker do has_external_dependencies: true, latency_sensitive: true, resource_boundary: :unknown, - weight: 1 + weight: 3, + idempotent: false } worker_a = create_worker(queue: 'a', **attributes_a) |