mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
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>
This commit is contained in:
parent
4ca34fce08
commit
0dfd5a151d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue