From 9135931385fb388381e15217f052eabdddc60f57 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 20 Nov 2022 14:23:38 +0100 Subject: [PATCH] tests: Ensure that restore-size resizes the client before maximize/unmaximize The test does simply "wait" which apparently is not enough to ensure the client window did resize to the expected dimensions. Use "wait_reconfigure" and assert that the size after resize is the expected, before going further at testing its behavior after maximize/unmaximize; it might end up with the unexpected size after the whole operation. Part-of: --- src/tests/stacking/restore-size.metatest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/stacking/restore-size.metatest b/src/tests/stacking/restore-size.metatest index 58941b017..198cc7a55 100644 --- a/src/tests/stacking/restore-size.metatest +++ b/src/tests/stacking/restore-size.metatest @@ -18,7 +18,8 @@ wait assert_size x/1 500 400 resize x/1 300 200 -wait +wait_reconfigure +assert_size x/1 300 200 maximize x/1 wait_reconfigure unmaximize x/1