File dash-core-increase-timeouts.patch of Package dash-core

From ad0626f50e703ef1272d69164fc1a40396d99fc1 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Tue, 29 Oct 2024 16:44:21 +0000
Subject: [PATCH] Increase timeouts in some functional tests.

This change increases timeouts in tests of whether governance checks
can be skipped for blocks covered by the best chainlock.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 test/functional/feature_governance_cl.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/functional/feature_governance_cl.py b/test/functional/feature_governance_cl.py
index accd731a83..05c4c47259 100755
--- a/test/functional/feature_governance_cl.py
+++ b/test/functional/feature_governance_cl.py
@@ -74,7 +74,7 @@ class DashGovernanceTest (DashTestFramework):
         p1_collateral_prepare = self.prepare_object(1, uint256_to_string(0), proposal_time, 1, "Proposal_1", self.p1_amount, self.p1_payout_address)
         self.bump_mocktime(60 * 10 + 1)
 
-        self.generate(self.nodes[0], 6, sync_fun=self.sync_blocks())
+        self.generate(self.nodes[0], 6, sync_fun=self.sync_blocks(timeout=180))
 
         assert_equal(len(self.nodes[0].gobject("list-prepared")), 2)
         assert_equal(len(self.nodes[0].gobject("list")), 0)
@@ -120,7 +120,7 @@ class DashGovernanceTest (DashTestFramework):
             self.generate(self.nodes[0], 1, sync_fun=lambda: self.sync_blocks(self.nodes[0:5]))
 
         # Confirm all is good
-        self.wait_until(lambda: have_trigger_for_height(self.nodes[0:5], sb_block_height), timeout=5)
+        self.wait_until(lambda: have_trigger_for_height(self.nodes[0:5], sb_block_height), timeout=15)
 
         self.log.info("Mine superblock")
         self.bump_mocktime(156)
@@ -149,7 +149,7 @@ class DashGovernanceTest (DashTestFramework):
         assert_equal(self.nodes[5].mnsync("status")["IsSynced"], False)
         # NOTE: bumping mocktime too much after recent reconnect can result in "timeout downloading block"
         self.bump_mocktime(1)
-        self.generate(self.nodes[0], 1, sync_fun=self.sync_blocks())
+        self.generate(self.nodes[0], 1, sync_fun=self.sync_blocks(timeout=180))
 
 
 if __name__ == '__main__':
-- 
2.48.1