Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chejennifer committed Jul 15, 2024
1 parent fbc34e7 commit c762f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/lib/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def find_open_port(skip_ports: set[int] | None = None):
for port in range(12000, 13000):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
if port in skip_ports:
if skip_ports and port in skip_ports:
continue
res = sock.connect_ex(('localhost', port))
if res != 0:
Expand Down

0 comments on commit c762f83

Please sign in to comment.