Skip to content

Commit 93ba7b0

Browse files
authored
Merge pull request ceph#59530 from rhcs-dashboard/api_test_mgr_module_failure
qa/tests: fix test_list_enabled_modules timeout error Reviewed-by: Ernesto Puerta <[email protected]>
2 parents b045f58 + b2da739 commit 93ba7b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/tasks/mgr/dashboard/test_mgr_module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
import requests
77

88
from .helper import (DashboardTestCase, JLeaf, JList, JObj,
9-
module_options_object_schema, module_options_schema)
9+
module_options_object_schema, module_options_schema,
10+
retry)
1011

1112
logger = logging.getLogger(__name__)
1213

1314

1415
class MgrModuleTestCase(DashboardTestCase):
1516
MGRS_REQUIRED = 1
1617

18+
@retry(on_exception=RuntimeError, tries=2, delay=0.5, logger=logger)
1719
def wait_until_rest_api_accessible(self):
1820
"""
1921
Wait until the REST API is accessible.

0 commit comments

Comments
 (0)