Skip to content

Commit

Permalink
Fix[ITs]: fail to start brokers due to reserveport.py
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
  • Loading branch information
678098 authored Jul 26, 2024
1 parent ecca25c commit 7c8404a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/blazingmq/dev/reserveport.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,6 @@ def reserve_port() -> typing.Iterator[TcpAddress]:

address = tcp_address(sockname[0], sockname[1])

yield address
# Make sure the socket is auto-closed before returning the address,
# or the started broker will not be able to use this port.
yield address

0 comments on commit 7c8404a

Please sign in to comment.