diff options
author | Nick Thomas <nick@gitlab.com> | 2019-08-14 14:38:28 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-08-14 14:38:28 +0000 |
commit | 3cd40c4a807fef5f99c60853ab81f8729405e315 (patch) | |
tree | 2d644a6b3d4a2a57f4d94117b15b3a31cae1c97d /spec/workers/post_receive_spec.rb | |
parent | 03c8bb125573d3910689d10b979a6aa59b680ff6 (diff) | |
parent | 4e2bb4e5e7df1273a4d2fdd370b6c17a27c394d8 (diff) | |
download | gitlab-ce-3cd40c4a807fef5f99c60853ab81f8729405e315.tar.gz |
Merge branch 'sh-optimize-commit-deltas-post-receive' into 'master'
Reduce Gitaly calls in PostReceive
Closes #65878
See merge request gitlab-org/gitlab-ce!31741
Diffstat (limited to 'spec/workers/post_receive_spec.rb')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index 4c9fc0e3a24..3b69b81f12e 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -273,6 +273,8 @@ describe PostReceive do end it "asks the project to trigger all hooks" do + create(:project_hook, push_events: true, tag_push_events: true, project: project) + create(:custom_issue_tracker_service, push_events: true, merge_requests_events: false, project: project) allow(Project).to receive(:find_by).and_return(project) expect(project).to receive(:execute_hooks).twice |