From 040bb538517381c591c5dfb5675610629e600868 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 16 Oct 2023 11:45:40 -0400 Subject: [PATCH] Make it optional --- src/allmydata/test/common_system.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/allmydata/test/common_system.py b/src/allmydata/test/common_system.py index cfb6c9f04..83ae87883 100644 --- a/src/allmydata/test/common_system.py +++ b/src/allmydata/test/common_system.py @@ -685,6 +685,10 @@ class SystemTestMixin(pollmixin.PollMixin, testutil.StallMixin): REDUCE_HTTP_CLIENT_TIMEOUT : bool = True def setUp(self): + if os.getenv("TAHOE_DEBUG_BLOCKING") == "1": + from .blocking import catch_blocking_in_event_loop + catch_blocking_in_event_loop(self) + self._http_client_pools = [] http_client.StorageClientFactory.start_test_mode(self._got_new_http_connection_pool) self.addCleanup(http_client.StorageClientFactory.stop_test_mode)