diff --git a/increase-a-timeout-in-a-test.patch b/increase-a-timeout-in-a-test.patch new file mode 100644 index 0000000..9190617 --- /dev/null +++ b/increase-a-timeout-in-a-test.patch @@ -0,0 +1,28 @@ +From 78cfa76f7edbe362c152d2ad4ad8e4012a61e437 Mon Sep 17 00:00:00 2001 +From: Tomas Jelinek +Date: Wed, 17 Apr 2024 17:25:04 +0200 +Subject: [PATCH] increase a timeout in a test + +--- + pcs_test/tier0/daemon/app/test_app_remote.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/pcs_test/tier0/daemon/app/test_app_remote.py b/pcs_test/tier0/daemon/app/test_app_remote.py +index c6a6b235..dc176846 100644 +--- a/pcs_test/tier0/daemon/app/test_app_remote.py ++++ b/pcs_test/tier0/daemon/app/test_app_remote.py +@@ -121,7 +121,10 @@ class SyncConfigMutualExclusive(AppTest): + # Without lock the timeout should be enough to finish task. With the + # lock it should raise because of timeout. The same timeout is used for + # noticing differences between test with and test without lock. +- return self.io_loop.run_sync(fetch_sync_options, timeout=0.5) ++ # The timeout needs to be long enough for the test to fit into it even ++ # if running on a slower machine. And it should be short enough not to ++ # make the test run unnecessary long. ++ return self.io_loop.run_sync(fetch_sync_options, timeout=2.5) + + def check_call_wrapper_without_lock(self, method): + self.assert_wrappers_response(self.fetch_set_sync_options(method)) +-- +2.33.0 + diff --git a/pcs.spec b/pcs.spec index 6e9207e..9118415 100644 --- a/pcs.spec +++ b/pcs.spec @@ -1,6 +1,6 @@ Name: pcs Version: 0.11.7 -Release: 10 +Release: 11 License: GPL-2.0-only AND Apache-2.0 AND MIT AND BSD-3-Clause AND (BSD-2-Clause OR Ruby) AND (BSD-2-Clause OR GPL-2.0-or-later) URL: https://github.com/ClusterLabs/pcs Group: System Environment/Base @@ -45,6 +45,7 @@ Patch5: update-crm_mon-schemas-for-tests.patch Patch6: add-dtos-and-converting-functions-for-resources-stat.patch Patch7: fixes-after-review.patch Patch8: store-clone-instance-id-in-resource-status-dtos.patch +Patch9: increase-a-timeout-in-a-test.patch # ui patches: >200 # Patch201: bzNUMBER-01-name.patch @@ -405,6 +406,9 @@ run_all_tests %license pyagentx_LICENSE.txt %changelog +* Wed Apr 24 2024 bizhiyuan - 0.11.7-11 +- increase a timeout in a test + * Mon Apr 22 2024 laokz - 0.11.7-10 - restore setuptools-scm name to adapt setuptools-68.0.0