From d3f0667cd11214522d5d4308a75a2087078b451d Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 19 Mar 2018 15:25:17 +0000 Subject: [PATCH] gvfs-test: Increase timeout to 10s In normal operation some operations - particularly unmounting - can take quite a while. Let's give things a bit longer before giving up. Patch originally by Andreas Hasenack Forwarded: https://bugzilla.gnome.org/show_bug.cgi?id=794487 Gbp-Pq: Name 0009-gvfs-test-Increase-timeout-to-10s.patch --- test/gvfs-test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/gvfs-test b/test/gvfs-test index 5fc335b..c689b9a 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -176,7 +176,7 @@ class GvfsTestCase(unittest.TestCase): def unmount(self, uri): self.program_out_success(['gio', 'mount', '-u', uri]) - timeout = 5 + timeout = 10 while timeout > 0: (out, err) = self.program_out_err(['gio', 'mount', '-li']) if not re.search('Mount.*' + uri, out): @@ -265,7 +265,7 @@ class GvfsTestCase(unittest.TestCase): def unmount_api(self, gfile): '''Umount a mounted Gio.File using the Gio API - This times out after 5 seconds. + This times out after 10 seconds. ''' self.cb_result = None @@ -282,7 +282,7 @@ class GvfsTestCase(unittest.TestCase): mount.unmount_with_operation(Gio.MountUnmountFlags.NONE, None, None, unmount_done, ml) # ensure we are timing out - GLib.timeout_add_seconds(5, lambda data: ml.quit(), None) + GLib.timeout_add_seconds(10, lambda data: ml.quit(), None) ml.run() self.assertNotEqual(self.cb_result, None, 'operation timed out')