From dcb70a3c0d0062e64b5f4b46e6c40442d15945de Mon Sep 17 00:00:00 2001 From: Tatjana Dehler Date: Fri, 11 Oct 2019 10:45:53 +0200 Subject: [PATCH] mgr/dashboard: wait a moment after module load After a dashboard module load we need to wait (10 secs) for the module to be back again. Otherwise the module might not be able to answer requests properly. It could lead to issues in some cases, e.g.: 'Failed to establish a new connection: [Errno 111] Connection refused'. Signed-off-by: Tatjana Dehler --- qa/tasks/mgr/dashboard/test_user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/mgr/dashboard/test_user.py b/qa/tasks/mgr/dashboard/test_user.py index 860bc8bf45b..29e182ebcb4 100644 --- a/qa/tasks/mgr/dashboard/test_user.py +++ b/qa/tasks/mgr/dashboard/test_user.py @@ -2,6 +2,8 @@ from __future__ import absolute_import +import time + from .helper import DashboardTestCase @@ -81,6 +83,7 @@ class UserTest(DashboardTestCase): # Restart dashboard module. self._unload_module('dashboard') self._load_module('dashboard') + time.sleep(10) self._get('/api/user/klara') self.assertStatus(200) -- 2.39.5