Skip to content

Commit

Permalink
system tests: podman network create: use random port
Browse files Browse the repository at this point in the history
One test was using a hardcoded fixed port, with a comment
referring to #10806. That issue seems fixed, so let's
try switching to a pseudorandom open port.

Does not actually fix #16289 but I'm going to close that
anyway, will reopen if it recurs.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Oct 25, 2022
1 parent 589ff20 commit 05bdc72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/system/500-networking.bats
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ load helpers

# "network create" now works rootless, with the help of a special container
@test "podman network create" {
# Deliberately use a fixed port, not random_open_port, because of #10806
myport=54322
myport=$(random_free_port)

local mynetname=testnet-$(random_string 10)
local mysubnet=$(random_rfc1918_subnet)
Expand Down

0 comments on commit 05bdc72

Please sign in to comment.