From 19e7e5559683262f6330e1c28ef011f3ab40d7e5 Mon Sep 17 00:00:00 2001 From: sroda Date: Tue, 23 May 2023 15:40:36 +0300 Subject: [PATCH] Add timeout for httpTestBase --- .../opentelemetry-test-utils/src/opentelemetry/test/httptest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/opentelemetry-test-utils/src/opentelemetry/test/httptest.py b/tests/opentelemetry-test-utils/src/opentelemetry/test/httptest.py index 94964ea9f17..84591ca0f19 100644 --- a/tests/opentelemetry-test-utils/src/opentelemetry/test/httptest.py +++ b/tests/opentelemetry-test-utils/src/opentelemetry/test/httptest.py @@ -24,7 +24,7 @@ class HttpTestBase(unittest.TestCase): class Handler(BaseHTTPRequestHandler): protocol_version = "HTTP/1.1" # Support keep-alive. - # timeout = 3 # No timeout -- if shutdown hangs, make sure to close your connection + timeout = 3 # Seconds STATUS_RE = re.compile(r"/status/(\d+)")