Skip to content

Commit

Permalink
system tests: networking: fix another race condition
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
edsantiago committed Apr 28, 2021
1 parent 4ca34fc commit 0dfd5a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/system/500-networking.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
}
Expand Down

0 comments on commit 0dfd5a1

Please sign in to comment.