1
0
Fork 0

tests/stacking: Replace a couple of sleep;assert_focused with wait_focused

This should hopefully get rid of race conditions in those tests.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3973>
This commit is contained in:
Jonas Ådahl 2024-08-22 15:08:13 +02:00 committed by Marge Bot
parent 7637627e01
commit 50e667b29b
2 changed files with 2 additions and 9 deletions

View file

@ -30,8 +30,5 @@ wait
assert_focused 2/1
assert_stacking 1/1 1/2 2/1
sleep 250
wait
assert_focused 2/1
wait_focused 2/1
assert_stacking 1/1 1/2 2/1

View file

@ -35,10 +35,6 @@ wait
assert_stacking 0/1 1/1 1/2 1/3 1/4
destroy 1/2
wait
sleep 450
wait
assert_focused 1/1
wait_focused 1/1
assert_stacking 0/1 1/1 1/3 1/4