Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 6bc77d5

Browse files
committed
enable reuse socket
1 parent 9a1dfab commit 6bc77d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/unit/test_flow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def port(self):
274274
@pytest.fixture
275275
def socket(self, port):
276276
s = socket.socket()
277+
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Enable SO_REUSEADDR
277278
s.bind(("localhost", port))
278279
yield s
279280
s.close()

0 commit comments

Comments
 (0)