Skip to content

Commit 04f7e67

Browse files
authored
test(setup): Align socket options with Relay options (#4844)
Sometimes tests are failing with port in use, align what the integration tests do with Relays settings to hopefully prevent that.
1 parent 61dc452 commit 04f7e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
def random_port():
4747
def inner():
4848
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
49-
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
49+
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
5050
s.bind(("127.0.0.1", 0))
5151
s.listen(1)
5252
port = s.getsockname()[1]

0 commit comments

Comments
 (0)