From 9e5962b4625acf7327c7c5eaebdf9fb4ea0c72f2 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Wed, 7 Dec 2022 16:32:25 +0100 Subject: test: Resolve trash flakyness by waiting before listing the content The action is done asynchronous by the service and without the delay the trash is sometime showing empty when it shouldn't. --- test/gvfs-test | 1 + 1 file changed, 1 insertion(+) diff --git a/test/gvfs-test b/test/gvfs-test index 8beb7266..a868ef99 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -1612,6 +1612,7 @@ class Trash(GvfsTestCase): def files_in_trash(self): files = set() + time.sleep(0.3) enum = self.gfile_trash.enumerate_children('*', Gio.FileQueryInfoFlags.NONE, None) while True: info = enum.next_file(None) -- cgit v1.2.1