diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-04-04 18:17:52 +0300 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-04-04 18:22:56 +0300 |
commit | e6780501cbfd0cae31fadd15b2964204171091cc (patch) | |
tree | ae2bb7fe92b0114019abbe6d4c861647b53e7a8a /spec/workers/project_cache_worker_spec.rb | |
parent | 0adedbb4822a8daaa215b33c88ace136c31d042d (diff) |
Refactor project_cache_worker_key
Diffstat (limited to 'spec/workers/project_cache_worker_spec.rb')
-rw-r--r-- | spec/workers/project_cache_worker_spec.rb | 2 |
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) { [] } |