summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-28 13:26:46 -0400
committerGitHub <noreply@github.com>2021-04-28 13:26:46 -0400
commit5b872c22282c9b082bdfcac2c815df7d1f54f177 (patch)
treecc008686bd51f4b2a9838d1d70804eea1179a6b3
parent633cc473b5886344cb8313f83f22a4bec3e8fa91 (diff)
parent0dfd5a151d0b1826dd21aca71ae9921a6ff90baf (diff)
downloadpodman-5b872c22282c9b082bdfcac2c815df7d1f54f177.tar.gz
podman-5b872c22282c9b082bdfcac2c815df7d1f54f177.tar.bz2
podman-5b872c22282c9b082bdfcac2c815df7d1f54f177.zip
Merge pull request #10165 from edsantiago/bats
system tests: networking: fix another race condition
-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
}