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 <tdehler@suse.com>
from __future__ import absolute_import
+import time
+
from .helper import DashboardTestCase
# Restart dashboard module.
self._unload_module('dashboard')
self._load_module('dashboard')
+ time.sleep(10)
self._get('/api/user/klara')
self.assertStatus(200)