You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/08/09 11:33:09 UTC

[couchdb] branch 3.x updated: fix(dev/run): allow -n > 5

This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/3.x by this push:
     new cc05c03  fix(dev/run): allow -n > 5
cc05c03 is described below

commit cc05c03866d88bdaac6036a4cdcd55c92833302f
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Mon Aug 9 11:11:04 2021 +0200

    fix(dev/run): allow -n > 5
---
 dev/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/run b/dev/run
index 0c77707..2984c5c 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: