From: Ernesto Puerta Date: Wed, 22 Sep 2021 12:10:28 +0000 (+0200) Subject: qa/mgr/dashboard: add extra wait to test X-Git-Tag: v17.1.0~782^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ff778cdaa1ef40fcfa04f221a1da786a0e19655;p=ceph.git qa/mgr/dashboard: add extra wait to test Fixes: https://tracker.ceph.com/issues/49344 Signed-off-by: Ernesto Puerta --- diff --git a/qa/tasks/mgr/dashboard/test_user.py b/qa/tasks/mgr/dashboard/test_user.py index 73ead662d6be..3a6464f5a5b7 100644 --- a/qa/tasks/mgr/dashboard/test_user.py +++ b/qa/tasks/mgr/dashboard/test_user.py @@ -412,6 +412,9 @@ class UserTest(DashboardTestCase): user_1 = self._get('/api/user/user1') self.assertStatus(200) + # Let's wait 1 s to ensure pwd expiration date is not the same + time.sleep(1) + self.login('user1', 'mypassword10#') self._post('/api/user/user1/change_password', { 'old_password': 'mypassword10#',