From: Michael Stapelberg Date: Fri, 8 Aug 2014 10:22:41 +0000 (+0200) Subject: t/*ewmh*: fix flakiness by syncing X-Git-Tag: 4.9~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=294d52e0180ea81bd18606fa604486026855691a;p=i3%2Fi3 t/*ewmh*: fix flakiness by syncing --- diff --git a/testcases/t/234-ewmh-desktop-names.t b/testcases/t/234-ewmh-desktop-names.t index 570e8528..d95965c4 100644 --- a/testcases/t/234-ewmh-desktop-names.t +++ b/testcases/t/234-ewmh-desktop-names.t @@ -20,6 +20,9 @@ use i3test; sub get_desktop_names { + # Make sure that i3 pushed its changes to X11 before querying. + sync_with_i3; + my $cookie = $x->get_property( 0, $x->get_root_window(), diff --git a/testcases/t/521-ewmh-desktop-viewport.t b/testcases/t/521-ewmh-desktop-viewport.t index 07034cda..9e36090c 100644 --- a/testcases/t/521-ewmh-desktop-viewport.t +++ b/testcases/t/521-ewmh-desktop-viewport.t @@ -33,6 +33,9 @@ EOT my $pid = launch_with_config($config); sub get_desktop_viewport { + # Make sure that i3 pushed its changes to X11 before querying. + sync_with_i3; + my $cookie = $x->get_property( 0, $x->get_root_window(),