Commit 9b9b6f05 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix cancel pipeline test by increasing queries limit

parent 7b344cf6
......@@ -2702,7 +2702,7 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
pipeline2.cancel_running
end
extra_update_queries = 3 # transition ... => :canceled
extra_update_queries = 4 # transition ... => :canceled, queue pop
extra_generic_commit_status_validation_queries = 2 # name_uniqueness_across_types
expect(control2.count).to eq(control1.count + extra_update_queries + extra_generic_commit_status_validation_queries)
......
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