Skip to content

Commit 251b74a

Browse files
authored
Add timeout for httpTestBase (#3318)
1 parent ad2de35 commit 251b74a

File tree

1 file changed

+1
-1
lines changed
  • tests/opentelemetry-test-utils/src/opentelemetry/test

1 file changed

+1
-1
lines changed

tests/opentelemetry-test-utils/src/opentelemetry/test/httptest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HttpTestBase(unittest.TestCase):
2424

2525
class Handler(BaseHTTPRequestHandler):
2626
protocol_version = "HTTP/1.1" # Support keep-alive.
27-
# timeout = 3 # No timeout -- if shutdown hangs, make sure to close your connection
27+
timeout = 3 # Seconds
2828

2929
STATUS_RE = re.compile(r"/status/(\d+)")
3030

0 commit comments

Comments
 (0)