From f7b4fe29dcb70e46e4488dce6f87ea5428c9b22f Mon Sep 17 00:00:00 2001
From: Nicolas Dular <ndular@gitlab.com>
Date: Fri, 19 Jul 2024 16:56:24 +0200
Subject: [PATCH] Increase query threshold for rolled up dates spec

---
 .../features/work_items/rolledup_dates_shared_examples.rb      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/spec/support/shared_examples/features/work_items/rolledup_dates_shared_examples.rb b/spec/support/shared_examples/features/work_items/rolledup_dates_shared_examples.rb
index f9c180a186c6..c2ff953ab662 100644
--- a/spec/support/shared_examples/features/work_items/rolledup_dates_shared_examples.rb
+++ b/spec/support/shared_examples/features/work_items/rolledup_dates_shared_examples.rb
@@ -182,6 +182,9 @@ def add_existing_child(child_work_item)
 
       context 'when removing all children' do
         it 'rolled up child dates' do
+          # https://gitlab.com/gitlab-org/gitlab/-/issues/473408
+          allow(Gitlab::QueryLimiting::Transaction).to receive(:threshold).and_return(107)
+
           add_new_child(title: 'child issue 1', start_date: '2020-11-01', due_date: '2020-12-02')
           add_new_child(title: 'child issue 2', start_date: '2020-12-01', due_date: '2021-01-02')
 
-- 
GitLab