Skip to content

Commit 728bfcd

Browse files
committed
fix test
1 parent e76d0e2 commit 728bfcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_application.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_is_port_available():
4848
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
4949
test_port = find_free_port()
5050
s.bind(("127.0.0.1", test_port))
51+
s.listen(1) # Put the socket in listening state to actually reserve the port
5152

5253
try:
5354
# Now the port should not be available

0 commit comments

Comments
 (0)