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:
Diffstat (limited to 'spec/requests/git_http_spec.rb')
-rw-r--r--spec/requests/git_http_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb
index d3d1a2a6cd0..5b50e8a1021 100644
--- a/spec/requests/git_http_spec.rb
+++ b/spec/requests/git_http_spec.rb
@@ -236,6 +236,11 @@ RSpec.describe 'Git HTTP requests', feature_category: :source_code_management do
allow(::Users::ActivityService).to receive(:new).and_return(activity_service)
allow(activity_service).to receive(:execute)
+ # During project creation, we need to track the project wiki
+ # repository. So it is over the query limit threshold, and we
+ # have to adjust it.
+ allow(Gitlab::QueryLimiting::Transaction).to receive(:threshold).and_return(101)
+
expect do
upload(path, user: user.username, password: user.password) do |response|
expect(response).to have_gitlab_http_status(:ok)