Skip to content

Commit a5ed423

Browse files
Merge pull request #25273 from Luap99/apiv2-flake
test/apiv2: fix registry push flake
2 parents 1d06a1f + 5bada90 commit a5ed423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/apiv2/test-apiv2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,12 @@ function stop_registry() {
603603
}
604604

605605
#################
606-
# random_port # Random open port; arg is range (min-max), default 5000-5999
606+
# random_port # Random open port; arg is range (min-max), default 5001-5999
607607
#################
608608
function random_port() {
609-
local range=${1:-5000-5999}
609+
# Note port 5001 is chosen because 5000 is trusted per test/registries.conf.
610+
# The tests try to push without SSL and that must fail so we cannot use that port.
611+
local range=${1:-5001-5999}
610612

611613
local port
612614
for port in $(shuf -i ${range}); do

0 commit comments

Comments
 (0)