From c5b1bdc0fe1d8e72b19a915453beec5ccdb3cedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 29 May 2020 16:27:03 +0200 Subject: [PATCH] tests/stacking/restore-position: Always use wait_reconfigure wait_reconfigure ensures that the whole configure back and forth completes before continuing. Doing this after every state change ensures that we always end up with the expected state, thus fixes flakyness of the restore-position stacking test. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1279 --- src/tests/stacking/restore-position.metatest | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/stacking/restore-position.metatest b/src/tests/stacking/restore-position.metatest index 5390a2b47..b4e7a7e97 100644 --- a/src/tests/stacking/restore-position.metatest +++ b/src/tests/stacking/restore-position.metatest @@ -16,11 +16,11 @@ wait_reconfigure assert_position x/1 100 100 tile x/1 left -wait +wait_reconfigure assert_position x/1 0 0 untile x/1 -wait +wait_reconfigure assert_position x/1 100 100 tile x/1 left @@ -57,11 +57,11 @@ wait_reconfigure assert_position w/1 0 0 untile w/1 -wait +wait_reconfigure assert_position w/1 100 100 tile w/1 left -wait +wait_reconfigure assert_position w/1 0 0 maximize w/1