Skip to content
Snippets Groups Projects
Commit 84d9a422 authored by Max Fan's avatar Max Fan :two:
Browse files

Renaming job specs

parent 199cce92
No related branches found
No related tags found
2 merge requests!162233Draft: Script to update Topology Service Gem,!153305Renaming job specs
......@@ -435,11 +435,11 @@ def perform_request
control = ActiveRecord::QueryRecorder.new(skip_cached: false) { go }
5.times do
second_pipeline = create(:ci_pipeline, project: project, sha: project.commit.id, ref: project.default_branch)
second_build = create(:ci_build, :trace_artifact, :artifacts, :test_reports, pipeline: second_pipeline)
second_build.runner = create(:ci_runner)
second_build.user = create(:user)
second_build.save!
another_pipeline = create(:ci_pipeline, project: project, sha: project.commit.id, ref: project.default_branch)
another_build = create(:ci_build, :trace_artifact, :artifacts, :test_reports, pipeline: another_pipeline)
another_build.runner = create(:ci_runner)
another_build.user = create(:user)
another_build.save!
end
expect { go }.not_to exceed_query_limit(control)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment