From 0e1526ed30f375a169c68d36923bc9e60ce3258f Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Fri, 13 Feb 2026 11:45:09 +0300 Subject: [PATCH] Fix flaky test_download_with_proxy_https_timeout(). (#7250) --- tests/mockserver/http_resources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/mockserver/http_resources.py b/tests/mockserver/http_resources.py index 70a9b8ac6..62a3146bf 100644 --- a/tests/mockserver/http_resources.py +++ b/tests/mockserver/http_resources.py @@ -308,7 +308,8 @@ class UriResource(resource.Resource): # ToDo: implement proper HTTPS proxy tests, not faking them. if request.method != b"CONNECT": return request.uri - return b"" + request.transport.write(b"HTTP/1.1 200 Connection established\r\n\r\n") + return NOT_DONE_YET class ResponseHeadersResource(resource.Resource):