Skip to content

Commit 6bc77d5

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)