diff --git a/qa/tasks/mgr/dashboard/test_mgr_module.py b/qa/tasks/mgr/dashboard/test_mgr_module.py index c196c712401..aa12a5a1c4d 100644 --- a/qa/tasks/mgr/dashboard/test_mgr_module.py +++ b/qa/tasks/mgr/dashboard/test_mgr_module.py @@ -6,7 +6,8 @@ import logging import requests from .helper import (DashboardTestCase, JLeaf, JList, JObj, - module_options_object_schema, module_options_schema) + module_options_object_schema, module_options_schema, + retry) logger = logging.getLogger(__name__) @@ -14,6 +15,7 @@ logger = logging.getLogger(__name__) class MgrModuleTestCase(DashboardTestCase): MGRS_REQUIRED = 1 + @retry(on_exception=RuntimeError, tries=2, delay=0.5, logger=logger) def wait_until_rest_api_accessible(self): """ Wait until the REST API is accessible.