From 054158ec8d31ed660340a6ed158354f936aa5eb9 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 15 Nov 2023 14:28:48 +0800 Subject: [PATCH] fix flaky test_backuptarget_invalid by increase loop time Signed-off-by: Chris --- manager/integration/tests/test_basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/integration/tests/test_basic.py b/manager/integration/tests/test_basic.py index 4088e9fe8d..320b043803 100644 --- a/manager/integration/tests/test_basic.py +++ b/manager/integration/tests/test_basic.py @@ -100,6 +100,7 @@ from common import BACKUP_COMPRESSION_METHOD_NONE from common import create_and_wait_deployment from common import get_custom_object_api_client +from common import RETRY_COUNTS_SHORT from backupstore import backupstore_delete_volume_cfg_file from backupstore import backupstore_cleanup @@ -5547,7 +5548,7 @@ def test_backuptarget_invalid(apps_api, # NOQA snap = create_snapshot(client, volume_name) volume.snapshotBackup(name=snap.name) - for i in range(RETRY_COMMAND_COUNT): + for i in range(RETRY_COUNTS_SHORT): api = get_custom_object_api_client() backups = api.list_namespaced_custom_object("longhorn.io", "v1beta2",