Commit c51c36ed authored by Alexandru Croitor's avatar Alexandru Croitor

Increment by 1 the number of queries on project import

We probably were already close to the 100 queries limit
and creating a new project namespace on project creation
have spilled it over the limit. When a project is imported
a new project is being created and we also create a project
namespace, so there is an increase in the SQL queries by 1
parent 72ffebc5
......@@ -47,7 +47,7 @@ RSpec.describe API::ProjectImport do
it 'executes a limited number of queries' do
control_count = ActiveRecord::QueryRecorder.new { subject }.count
expect(control_count).to be <= 100
expect(control_count).to be <= 101
end
it 'schedules an import using a namespace' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment