summaryrefslogtreecommitdiff
path: root/test/system/150-login.bats
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-06-24 15:21:27 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-06-27 14:25:24 +0200
commit345778ece0eac49fe49e68a2dd2bb301c975c5af (patch)
treeb21809bf3bd4c5b8bfd59f732605b52058c4cea2 /test/system/150-login.bats
parent3176b3fe011aa3323ba192e90efe516d0701e46e (diff)
downloadpodman-345778ece0eac49fe49e68a2dd2bb301c975c5af.tar.gz
podman-345778ece0eac49fe49e68a2dd2bb301c975c5af.tar.bz2
podman-345778ece0eac49fe49e68a2dd2bb301c975c5af.zip
Fix "podman run port forward range" flake
The test must ensure that all ports in the range are free not just the first. This flakes often because port 5355 is always in use by systemd-resolved on fedora. Fixes #14716 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/system/150-login.bats')
-rw-r--r--test/system/150-login.bats2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/150-login.bats b/test/system/150-login.bats
index 33b8438bf..dc902d5fe 100644
--- a/test/system/150-login.bats
+++ b/test/system/150-login.bats
@@ -314,7 +314,7 @@ function _test_skopeo_credential_sharing() {
fi
# Make sure socket is closed
- if { exec 3<> /dev/tcp/127.0.0.1/${PODMAN_LOGIN_REGISTRY_PORT}; } &>/dev/null; then
+ if ! port_is_free $PODMAN_LOGIN_REGISTRY_PORT; then
die "Socket still seems open"
fi
}