From 1a2c8cbc49fa1aa8e094d7bd13eb037fc93fd7fa Mon Sep 17 00:00:00 2001 From: Charles Yao Date: Sat, 24 Oct 2026 13:39:41 -0700 Subject: [PATCH] test(builder): bound worker retention stress with existing long watchdog --- .../dify_builder/native_testing/test_native_runtime.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/tests/unit_tests/services/dify_builder/native_testing/test_native_runtime.py b/api/tests/unit_tests/services/dify_builder/native_testing/test_native_runtime.py index 558c5cd68dc..eb459445da2 100644 --- a/api/tests/unit_tests/services/dify_builder/native_testing/test_native_runtime.py +++ b/api/tests/unit_tests/services/dify_builder/native_testing/test_native_runtime.py @@ -1399,6 +1399,9 @@ def test_actual_activated_startup_failure_consumes_only_original_zero_activity_v assert runtime.host.lifetime._node_scopes == [] +# Like the other 130-delivery stress case below, this validates owner retention, +# not a 20-second throughput contract; keep a bounded CI watchdog. +@pytest.mark.timeout(60) def test_same_worker_reclaims_over_128_closed_consumed_requests_but_keeps_unknown_live( case: ObservationOwnerCase, monkeypatch: pytest.MonkeyPatch ) -> None: