mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08: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:
@ -141,7 +141,7 @@ load helpers
|
|||||||
is "$output" ".* inet ${mysubnet}\.2/24 brd ${mysubnet}\.255 " \
|
is "$output" ".* inet ${mysubnet}\.2/24 brd ${mysubnet}\.255 " \
|
||||||
"sdfsdf"
|
"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
|
$IMAGE nc -l -n -v -p $myport
|
||||||
cid="$output"
|
cid="$output"
|
||||||
|
|
||||||
@ -167,6 +167,7 @@ load helpers
|
|||||||
is "$output" "Error: the network name $mynetname is already used" \
|
is "$output" "Error: the network name $mynetname is already used" \
|
||||||
"Trying to create an already-existing network"
|
"Trying to create an already-existing network"
|
||||||
|
|
||||||
|
run_podman rm $cid
|
||||||
run_podman network rm $mynetname
|
run_podman network rm $mynetname
|
||||||
run_podman 1 network rm $mynetname
|
run_podman 1 network rm $mynetname
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user