summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2021-08-09 11:11:04 +0200
committerJan Lehnardt <jan@apache.org>2021-08-09 13:32:57 +0200
commitcc05c03866d88bdaac6036a4cdcd55c92833302f (patch)
treef1211d7a6ad79b843e21f2cb85fb51f3dc5729e9
parentba638783b5d87b855939dae69fd63ffd41cb5ed7 (diff)
downloadcouchdb-cc05c03866d88bdaac6036a4cdcd55c92833302f.tar.gz
fix(dev/run): allow -n > 5
-rwxr-xr-xdev/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/run b/dev/run
index 0c77707ef..2984c5c73 100755
--- a/dev/run
+++ b/dev/run
@@ -367,7 +367,7 @@ def get_ports(ctx, idnode):
def get_available_ports(num):
ports = []
- while len(ports) < num:
+ while len(ports) < num + 1:
with contextlib.closing(
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
) as soc: