!76 increase a timeout in a test
From: @bizhiyuan Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
7e652e5cb3
28
increase-a-timeout-in-a-test.patch
Normal file
28
increase-a-timeout-in-a-test.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 78cfa76f7edbe362c152d2ad4ad8e4012a61e437 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tomas Jelinek <tojeline@redhat.com>
|
||||||
|
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
|
||||||
|
|
||||||
6
pcs.spec
6
pcs.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pcs
|
Name: pcs
|
||||||
Version: 0.11.7
|
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)
|
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
|
URL: https://github.com/ClusterLabs/pcs
|
||||||
Group: System Environment/Base
|
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
|
Patch6: add-dtos-and-converting-functions-for-resources-stat.patch
|
||||||
Patch7: fixes-after-review.patch
|
Patch7: fixes-after-review.patch
|
||||||
Patch8: store-clone-instance-id-in-resource-status-dtos.patch
|
Patch8: store-clone-instance-id-in-resource-status-dtos.patch
|
||||||
|
Patch9: increase-a-timeout-in-a-test.patch
|
||||||
|
|
||||||
# ui patches: >200
|
# ui patches: >200
|
||||||
# Patch201: bzNUMBER-01-name.patch
|
# Patch201: bzNUMBER-01-name.patch
|
||||||
@ -405,6 +406,9 @@ run_all_tests
|
|||||||
%license pyagentx_LICENSE.txt
|
%license pyagentx_LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 24 2024 bizhiyuan <bizhiyuan@kylinos.cn> - 0.11.7-11
|
||||||
|
- increase a timeout in a test
|
||||||
|
|
||||||
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 0.11.7-10
|
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 0.11.7-10
|
||||||
- restore setuptools-scm name to adapt setuptools-68.0.0
|
- restore setuptools-scm name to adapt setuptools-68.0.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user