aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-04-28 05:47:54 -0600
committerEd Santiago <santiago@redhat.com>2021-04-28 08:41:27 -0600
commit0dfd5a151d0b1826dd21aca71ae9921a6ff90baf (patch)
treef71b5959f2b8ca558242d96c119bab1136631ef2 /test
parent4ca34fce08ffa9e29d0719e3e29383e9ffdb1572 (diff)
downloadpodman-0dfd5a151d0b1826dd21aca71ae9921a6ff90baf.tar.gz
podman-0dfd5a151d0b1826dd21aca71ae9921a6ff90baf.tar.bz2
podman-0dfd5a151d0b1826dd21aca71ae9921a6ff90baf.zip
system tests: networking: fix another race condition
Our current #1 flake; this is a simple one: we can't run 'logs' on a container run with '-d --rm'. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/500-networking.bats3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats
index 9f8791e5d..788dc4cd1 100644
--- a/test/system/500-networking.bats
+++ b/test/system/500-networking.bats
@@ -141,7 +141,7 @@ load helpers
is "$output" ".* inet ${mysubnet}\.2/24 brd ${mysubnet}\.255 " \
"sdfsdf"
- run_podman run --rm -d --network $mynetname -p 127.0.0.1:$myport:$myport \
+ run_podman run -d --network $mynetname -p 127.0.0.1:$myport:$myport \
$IMAGE nc -l -n -v -p $myport
cid="$output"
@@ -167,6 +167,7 @@ load helpers
is "$output" "Error: the network name $mynetname is already used" \
"Trying to create an already-existing network"
+ run_podman rm $cid
run_podman network rm $mynetname
run_podman 1 network rm $mynetname
}