diff options
Diffstat (limited to 'spec/controllers/projects/pipelines_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/pipelines_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/controllers/projects/pipelines_controller_spec.rb b/spec/controllers/projects/pipelines_controller_spec.rb index f66e4b133ca..3d1d28945f7 100644 --- a/spec/controllers/projects/pipelines_controller_spec.rb +++ b/spec/controllers/projects/pipelines_controller_spec.rb @@ -84,6 +84,13 @@ RSpec.describe Projects::PipelinesController do end context 'when performing gitaly calls', :request_store do + before do + # To prevent double writes / fallback read due to MultiStore which is failing the `Gitlab::GitalyClient + # .get_request_count` expectation. + stub_feature_flags(use_primary_store_as_default_for_repository_cache: false) + stub_feature_flags(use_primary_and_secondary_stores_for_repository_cache: false) + end + it 'limits the Gitaly requests' do # Isolate from test preparation (Repository#exists? is also cached in RequestStore) RequestStore.end! |