From 6bc77d59b2669b3a08f34f6dc55a502c99b677d0 Mon Sep 17 00:00:00 2001 From: Harkamal Jot Singh Kumar Date: Sat, 22 Feb 2025 00:46:34 +0000 Subject: [PATCH 1/2] enable reuse socket --- tests/unit/test_flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_flow.py b/tests/unit/test_flow.py index 5941bb9..3323547 100644 --- a/tests/unit/test_flow.py +++ b/tests/unit/test_flow.py @@ -274,6 +274,7 @@ def port(self): @pytest.fixture def socket(self, port): s = socket.socket() + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Enable SO_REUSEADDR s.bind(("localhost", port)) yield s s.close() From b9ab57a3aa3cd4e81a35154ca2edfba2d485a1b2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 22 Feb 2025 00:51:00 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- tests/unit/test_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_flow.py b/tests/unit/test_flow.py index 3323547..9891a70 100644 --- a/tests/unit/test_flow.py +++ b/tests/unit/test_flow.py @@ -274,7 +274,7 @@ def port(self): @pytest.fixture def socket(self, port): s = socket.socket() - s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Enable SO_REUSEADDR + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Enable SO_REUSEADDR s.bind(("localhost", port)) yield s s.close()