From 8daffe86a693531d7526762ab30838bba86d6e22 Mon Sep 17 00:00:00 2001 From: Patrick Nawracay Date: Mon, 17 Sep 2018 09:25:34 +0200 Subject: [PATCH] mgr/dashboard: Fix for some dashboard timing issues Specifically fixes the recurringly occurring `test_osd.py` error on the `test_scrub` method. But this change should also prevent other issues of the same kind. Issues of "same kind" are issues which occurr due to tests which do not immediately result in a clean cluster status and aren't manually programmed to wait for it. Fixes: http://tracker.ceph.com/issues/36107 Signed-off-by: Patrick Nawracay --- qa/tasks/mgr/dashboard/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/tasks/mgr/dashboard/helper.py b/qa/tasks/mgr/dashboard/helper.py index af536288c0298..025665be4f4c9 100644 --- a/qa/tasks/mgr/dashboard/helper.py +++ b/qa/tasks/mgr/dashboard/helper.py @@ -144,6 +144,7 @@ class DashboardTestCase(MgrTestCase): def setUp(self): if not self._loggedin and self.AUTO_AUTHENTICATE: self.login('admin', 'admin') + self.wait_for_health_clear(20) @classmethod def tearDownClass(cls): -- 2.39.5