Skip to content

Commit

Permalink
Merge pull request #25273 from Luap99/apiv2-flake
Browse files Browse the repository at this point in the history
test/apiv2: fix registry push flake
  • Loading branch information
openshift-merge-bot[bot] authored Feb 10, 2025
2 parents 1d06a1f + 5bada90 commit a5ed423
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/apiv2/test-apiv2
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,12 @@ function stop_registry() {
}

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

local port
for port in $(shuf -i ${range}); do
Expand Down

0 comments on commit a5ed423

Please sign in to comment.