]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: fix race in test_sessionmap
authorJohn Spray <john.spray@redhat.com>
Thu, 5 Nov 2015 01:15:57 +0000 (01:15 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 5 Nov 2015 01:15:57 +0000 (01:15 +0000)
Fixes: #13698
Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_sessionmap.py

index 70ee1984dde021b8223a06c973c496cf18fca0dd..5b0bae4ade98c16643927bb2de8ddae251b76dd2 100644 (file)
@@ -73,7 +73,10 @@ class TestSessionMap(CephFSTestCase):
         # dirty)
         # The number of writes is two per session, because the header (sessionmap version) update and
         # KV write both count.
-        self.assertEqual(get_omap_wrs() - initial_omap_wrs, 2)
+        self.wait_until_true(
+            lambda: get_omap_wrs() - initial_omap_wrs == 2,
+            timeout=10  # Long enough for an export to get acked
+        )
 
         # Now end our sessions and check the backing sessionmap is updated correctly
         self.mount_a.umount_wait()