diff options
Diffstat (limited to 'spec/services/merge_requests/close_service_spec.rb')
-rw-r--r-- | spec/services/merge_requests/close_service_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/services/merge_requests/close_service_spec.rb b/spec/services/merge_requests/close_service_spec.rb index 2c0817550c6..25c75ae7244 100644 --- a/spec/services/merge_requests/close_service_spec.rb +++ b/spec/services/merge_requests/close_service_spec.rb @@ -88,7 +88,11 @@ RSpec.describe MergeRequests::CloseService, feature_category: :code_review_workf end it 'refreshes the number of open merge requests for a valid MR', :use_clean_rails_memory_store_caching do - expect { execute } + expect do + execute + + BatchLoader::Executor.clear_current + end .to change { project.open_merge_requests_count }.from(1).to(0) end |