From 8d81d992639c0eda3d3044e96958416b81cdb46b Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 24 Jan 2024 22:30:15 +0100 Subject: [PATCH] make test even more predictable --- tests/pipeline/test_resources_evaluation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pipeline/test_resources_evaluation.py b/tests/pipeline/test_resources_evaluation.py index cd5e80a316..71e1fa42ff 100644 --- a/tests/pipeline/test_resources_evaluation.py +++ b/tests/pipeline/test_resources_evaluation.py @@ -239,7 +239,7 @@ def _gen(): @parallelize def resource1(): for l_ in ["a", "b", "c"]: - time.sleep(0.3) + time.sleep(0.5) nonlocal execution_order execution_order.append("one") threads.add(threading.get_ident()) @@ -247,9 +247,9 @@ def resource1(): @parallelize def resource2(): - time.sleep(0.1) + time.sleep(0.25) for l_ in ["e", "f", "g"]: - time.sleep(0.3) + time.sleep(0.5) nonlocal execution_order execution_order.append("two") threads.add(threading.get_ident())