summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-04-20 13:07:22 +0200
committerJürg Billeter <j@bitron.ch>2020-04-20 13:10:03 +0200
commitb2c5f0137e5773c3d315554dd3a6e6c09d588d81 (patch)
tree0fa109178972960037a66cc5515c267391f7047f
parent5d3c72fd1ee440cf487aa06756ab70baf4efe6af (diff)
downloadbuildstream-b2c5f0137e5773c3d315554dd3a6e6c09d588d81.tar.gz
tests/internals/cascache.py: Increase sleep duration to fix flaky test
Increase sleep duration in test_casd_redirects_stderr_to_file_and_rotate from 0.05s to 0.5s to reduce risk of test failure.
-rw-r--r--tests/internals/cascache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/internals/cascache.py b/tests/internals/cascache.py
index f095663a3..043531c24 100644
--- a/tests/internals/cascache.py
+++ b/tests/internals/cascache.py
@@ -82,7 +82,7 @@ def test_casd_redirects_stderr_to_file_and_rotate(tmp_path, monkeypatch):
# Let's create the first `n_max_log_files` log files
for i in range(1, n_max_log_files + 1):
cache = CASCache(str(casd_files_path), casd=True, log_directory=str(casd_parent_logs_path))
- time.sleep(0.05)
+ time.sleep(0.5)
cache.release_resources()
existing_log_files = sorted(casd_logs_path.iterdir())
@@ -94,7 +94,7 @@ def test_casd_redirects_stderr_to_file_and_rotate(tmp_path, monkeypatch):
evicted_file = existing_log_files.pop(0)
cache = CASCache(str(casd_files_path), casd=True, log_directory=str(casd_parent_logs_path))
- time.sleep(0.05)
+ time.sleep(0.5)
cache.release_resources()
existing_log_files = sorted(casd_logs_path.iterdir())