From 68765aa1b52380f2cb8f5ef06de39ac2a3d927eb Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Wed, 22 Sep 2021 14:10:28 +0200 Subject: [PATCH] qa/mgr/dashboard: add extra wait to test Fixes: https://tracker.ceph.com/issues/49344 Signed-off-by: Ernesto Puerta (cherry picked from commit 9ff778cdaa1ef40fcfa04f221a1da786a0e19655) --- 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 171a8f3abeb98..9507b56b5e743 100644 --- a/qa/tasks/mgr/dashboard/test_user.py +++ b/qa/tasks/mgr/dashboard/test_user.py @@ -402,6 +402,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#', -- 2.39.5