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:
parent
7637627e01
commit
50e667b29b
2 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue