From 8b09d29373633a12b373e05e109270fb26e0e7c4 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Tue, 14 May 2024 11:48:20 -0400 Subject: [PATCH] Add print logging for cls.port and cls.proxies --- test/test_capture_http_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_capture_http_proxy.py b/test/test_capture_http_proxy.py index fba301d8..b3d3e8ac 100644 --- a/test/test_capture_http_proxy.py +++ b/test/test_capture_http_proxy.py @@ -29,10 +29,14 @@ def handle_error(self, request, client_address): server = make_server('localhost', 0, wsgiprox, server_class=NoLogServer) addr, cls.port = server.socket.getsockname() + print(f"cls.port: {cls.port}", flush=True) + cls.proxies = {'https': 'localhost:' + str(cls.port), 'http': 'localhost:' + str(cls.port) } + print(f"cls.proxies: {cls.proxies}", flush=True) + def run(): try: server.serve_forever()