From 275e48a062a356335cdf5170cbb80ed39b0eb635 Mon Sep 17 00:00:00 2001 From: GPK Date: Tue, 19 Nov 2024 10:54:13 +0000 Subject: [PATCH] Lower bound spy calls check (#44177) * lower bound spy calls check * lower bound spy calls check --- task_sdk/tests/execution_time/test_supervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task_sdk/tests/execution_time/test_supervisor.py b/task_sdk/tests/execution_time/test_supervisor.py index f741d7c21b520..5ed51fece51aa 100644 --- a/task_sdk/tests/execution_time/test_supervisor.py +++ b/task_sdk/tests/execution_time/test_supervisor.py @@ -190,4 +190,4 @@ def subprocess_main(): assert proc.wait() == 0 assert spy.called_with(id, pid=proc.pid) # noqa: PGH005 # The exact number we get will depend on timing behaviour, so be a little lenient - assert 2 <= len(spy.calls) <= 4 + assert 1 <= len(spy.calls) <= 4