Commit ef0d53fe authored by Erick Bajao's avatar Erick Bajao

Fix spec to expect correct query count in FOSS only

parent 1a9f1db4
...@@ -188,8 +188,10 @@ describe PipelineDetailsEntity do ...@@ -188,8 +188,10 @@ describe PipelineDetailsEntity do
expect(names).to match_array(%w[build_1 build_2 build_3]) expect(names).to match_array(%w[build_1 build_2 build_3])
end end
expected_queries = Gitlab.ee? ? 42 : 29
# This makes only one query to fetch all job artifacts # This makes only one query to fetch all job artifacts
expect(recorder.count).to eq(42) expect(recorder.count).to eq(expected_queries)
end end
end end
...@@ -203,8 +205,10 @@ describe PipelineDetailsEntity do ...@@ -203,8 +205,10 @@ describe PipelineDetailsEntity do
expect(names).to match_array(%w[build_1 build_2 build_3]) expect(names).to match_array(%w[build_1 build_2 build_3])
end end
expected_queries = Gitlab.ee? ? 44 : 31
# This makes one query for each job artifact # This makes one query for each job artifact
expect(recorder.count).to eq(44) expect(recorder.count).to eq(expected_queries)
end end
end end
end end
......
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