Skip to content

Commit

Permalink
tests/vm: allow more time for the guest exec sleep to start
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Oct 3, 2024
1 parent 6aa5493 commit 570f329
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/vm
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ if ! echo "${LXD_SNAP_CHANNEL}" | grep -qE '^4\.0/'; then
waitInstanceBooted vm1

# Try disconnecting a VM stopping forcefully and gracefully to make sure they match.
(sleep 1 && lxc stop -f vm1) &
lxc exec vm1 -- sleep 10 || exitCode=$?
(sleep 5 && lxc stop -f vm1) &
lxc exec vm1 -- sleep 60 || exitCode=$?
[ "${exitCode:-0}" -eq 129 ]

wait $!

lxc start vm1
waitInstanceBooted vm1
(sleep 1 && lxc stop vm1) &
lxc exec vm1 -- sleep 10 || exitCode=$?
(sleep 5 && lxc stop vm1) &
lxc exec vm1 -- sleep 60 || exitCode=$?
[ "${exitCode:-0}" -eq 129 ]
wait $!
fi
Expand Down

0 comments on commit 570f329

Please sign in to comment.