Merge pull request #10165 from edsantiago/bats

system tests: networking: fix another race condition
This commit is contained in:
OpenShift Merge Robot 2021-04-28 13:26:46 -04:00 committed by GitHub
commit 5b872c2228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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
}