integration-test: Mitigate race after mounting
authorMartin Pitt <martinpitt@gnome.org>
Thu, 7 Jun 2012 06:51:24 +0000 (08:51 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Thu, 7 Jun 2012 09:42:09 +0000 (11:42 +0200)
Also wait for udev and the rest of the system after calling mount before
asserting the mount path exists. Fixes a common failure of FS tests.

src/tests/integration-test

index 7dc188d..8e88af1 100755 (executable)
@@ -790,7 +790,7 @@ class FS(UDisksTestCase):
         if label:
             self.assertTrue(mount_path.endswith(label))
 
-        self.client.settle()
+        self.sync()
         self.assertEqual(fs.get_property('mount-points'), [mount_path])
         self.assertTrue(self.is_mountpoint(mount_path))