]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/mgr/dashboard/test_rbd: wait longer when purging 34232/head
authorKiefer Chang <kiefer.chang@suse.com>
Fri, 27 Mar 2020 05:14:09 +0000 (13:14 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 31 Mar 2020 11:48:58 +0000 (19:48 +0800)
Fixes: https://tracker.ceph.com/issues/44743
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
Co-authored-by: Kefu Chai <kefu@redhat.com>
Co-authored-by: Volker Theile <vtheile@suse.com>
qa/tasks/mgr/dashboard/test_rbd.py

index a3ef00b1b7f0e53e8348978919f653a4480d3962..108b2f0332abfb30f91b2b90fad05b0729b6c520 100644 (file)
@@ -844,15 +844,14 @@ class RbdTest(DashboardTestCase):
         time.sleep(1)
 
         self.purge_trash('rbd')
-        self.assertStatus(200)
+        self.assertStatus([200, 201])
 
         time.sleep(1)
 
         trash_not_expired = self.get_trash('rbd', id_not_expired)
         self.assertIsNotNone(trash_not_expired)
 
-        trash_expired = self.get_trash('rbd', id_expired)
-        self.assertIsNone(trash_expired)
+        self.wait_until_equal(lambda: self.get_trash('rbd', id_expired), None, 60)
 
     def test_list_namespaces(self):
         self.create_namespace('rbd', 'ns')