You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/11/07 18:42:48 UTC

[libcloud] 08/14: Raise sleep interval even more.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 20ae65fe2015f019cca52da8247ff1f3610c24e8
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Nov 7 00:05:21 2021 +0100

    Raise sleep interval even more.
---
 libcloud/test/storage/test_local.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcloud/test/storage/test_local.py b/libcloud/test/storage/test_local.py
index 0613f16..e798112 100644
--- a/libcloud/test/storage/test_local.py
+++ b/libcloud/test/storage/test_local.py
@@ -91,13 +91,13 @@ class LocalTests(unittest.TestCase):
         # 3. Multiprocessing scenario where IPC lock is involved
         def acquire_lock_in_subprocess(pid, success):
             # For first process acquire should succeed and for the second it should fail
-            lock = LockLocalStorage("/tmp/c", timeout=1.5)
+            lock = LockLocalStorage("/tmp/c", timeout=2.5)
 
             if pid == 1:
                 with lock:
                     # We use longer sleep when running tests in parallel to avoid
                     # failures related to slower process spawn
-                    time.sleep(2)
+                    time.sleep(3)
 
                 success.value = 1
             elif pid == 2: