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:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-09-04 20:55:04 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-09-07 20:52:04 +0300
commit39298575a819ade6ad4f9e37a7f22592a05d21f8 (patch)
tree43319ff3c1bb533e20c5185571aa7341be984f31 /spec/services
parent21935d85382989e38dd4cc12de55966e0c9b6eba (diff)
Adds exclusive lease to Git garbage collect worker.
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/projects/housekeeping_service_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/services/projects/housekeeping_service_spec.rb b/spec/services/projects/housekeeping_service_spec.rb
index 9386c110385..437c009e7fa 100644
--- a/spec/services/projects/housekeeping_service_spec.rb
+++ b/spec/services/projects/housekeeping_service_spec.rb
@@ -20,6 +20,7 @@ describe Projects::HousekeepingService do
expect(GitGarbageCollectWorker).to receive(:perform_async).with(project.id, :the_task, :the_lease_key, :the_uuid)
subject.execute
+
expect(project.reload.pushes_since_gc).to eq(0)
end