]> git.sur5r.net Git - i3/i3/commitdiff
t/*ewmh*: fix flakiness by syncing
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 8 Aug 2014 10:22:41 +0000 (12:22 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 8 Aug 2014 10:23:47 +0000 (12:23 +0200)
testcases/t/234-ewmh-desktop-names.t
testcases/t/521-ewmh-desktop-viewport.t

index 570e85288f744c89ec640ed4740b34251f7e8bbe..d95965c466a4e7355e644b12af3b210f2ecddbdc 100644 (file)
@@ -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(),
index 07034cdab6dd6389d1f08cb9ddffab6722c3e8f1..9e36090ca50d9b8b37c5e21e973ff75c9455dafc 100644 (file)
@@ -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(),