Commit e432845e authored by Kamil Trzciński's avatar Kamil Trzciński

Fix cross-DB in specs of `retry_build_service_spec.rb`

The `retry_build_service_spec.rb` is fixed, but it has a code-path
that still uses in-transaction execution. Mark this execution
as allowed.
parent 73d36dfa
......@@ -371,6 +371,14 @@ RSpec.describe Ci::RetryBuildService do
it_behaves_like 'when build with dynamic environment is retried'
context 'when create_deployment_in_separate_transaction feature flag is disabled' do
let(:new_build) do
travel_to(1.second.from_now) do
::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/345668') do
service.clone!(build)
end
end
end
before do
stub_feature_flags(create_deployment_in_separate_transaction: false)
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