From f2803d311d79309e407c19dafefb7cb3fff79672 Mon Sep 17 00:00:00 2001 From: bswck Date: Thu, 24 Oct 2024 20:33:54 +0200 Subject: [PATCH] Minimize `num_threads` --- tests/unit_tests/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_main.py b/tests/unit_tests/test_main.py index 4b1ee42..51ce1f5 100644 --- a/tests/unit_tests/test_main.py +++ b/tests/unit_tests/test_main.py @@ -143,7 +143,7 @@ def factory() -> str: call_counts.update([thread_id]) return f"injected_object_{call_counts[thread_id]}" - num_threads = 10 + num_threads = 3 barrier = threading.Barrier(num_threads) inject("my_alias", into=scope, factory=factory, cache=False)