diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2022-12-07 16:32:25 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2022-12-14 08:13:08 +0000 |
commit | 9e5962b4625acf7327c7c5eaebdf9fb4ea0c72f2 (patch) | |
tree | 022a66ade67db8ec0a630fd7cc54d2f2a12afefd | |
parent | f8c876e4baa59546ff78e2d77590960a3be24836 (diff) | |
download | gvfs-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-x | test/gvfs-test | 1 |
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) |