summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2022-12-07 16:32:25 +0100
committerOndrej Holy <oholy@redhat.com>2022-12-14 08:13:08 +0000
commit9e5962b4625acf7327c7c5eaebdf9fb4ea0c72f2 (patch)
tree022a66ade67db8ec0a630fd7cc54d2f2a12afefd
parentf8c876e4baa59546ff78e2d77590960a3be24836 (diff)
downloadgvfs-9e5962b4625acf7327c7c5eaebdf9fb4ea0c72f2.tar.gz
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.
-rwxr-xr-xtest/gvfs-test1
1 files changed, 1 insertions, 0 deletions
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)