Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Sato <sathiroyuki@gmail.com>2019-04-04 18:17:52 +0300
committerHiroyuki Sato <sathiroyuki@gmail.com>2019-04-04 18:22:56 +0300
commite6780501cbfd0cae31fadd15b2964204171091cc (patch)
treeae2bb7fe92b0114019abbe6d4c861647b53e7a8a /spec/workers
parent0adedbb4822a8daaa215b33c88ace136c31d042d (diff)
Refactor project_cache_worker_key
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/project_cache_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/project_cache_worker_spec.rb b/spec/workers/project_cache_worker_spec.rb
index 724947228b7..7053bfc2bfd 100644
--- a/spec/workers/project_cache_worker_spec.rb
+++ b/spec/workers/project_cache_worker_spec.rb
@@ -7,7 +7,7 @@ describe ProjectCacheWorker do
let(:worker) { described_class.new }
let(:project) { create(:project, :repository) }
- let(:lease_key) { (["project_cache_worker", project.id] + statistics.sort).join(":") }
+ let(:lease_key) { ["project_cache_worker", project.id, *statistics.sort].join(":") }
let(:lease_timeout) { ProjectCacheWorker::LEASE_TIMEOUT }
let(:statistics) { [] }