[gvfs] test: Increase timeout for starting ftp server



commit 500e157b391e7acaf7127aa0ba88b175e7a14d49
Author: Ondrej Holy <oholy redhat com>
Date:   Fri Feb 14 12:04:38 2020 +0100

    test: Increase timeout for starting ftp server
    
    Currently, the test suite waits for starting the ftp server 5 seconds.
    This seems is not enough for GitLab CI as it randomly fails with "timed
    out waiting for test FTP server". Let's try to increase the timeout
    from 5 to 15 seconds in the hope that will fix the random failures.

 test/gvfs-test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index 8bd52218..3038923f 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -585,7 +585,7 @@ class Ftp(GvfsTestCase):
                 s.close()
                 break
             except ConnectionRefusedError:
-                time.sleep(0.1)
+                time.sleep(0.3)
                 pass
         else:
             self.fail('timed out waiting for test FTP server')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]