testcases: replace sleep with sync_with_i3 where appropiate

This commit is contained in:
Maik Fischer
2011-11-23 12:57:13 +01:00
committed by Michael Stapelberg
parent 33e9c29022
commit c2229b905a
6 changed files with 20 additions and 24 deletions

View File

@ -16,8 +16,7 @@ cmd 'open';
my $floating = get_focused($tmp);
diag("focused floating: " . get_focused($tmp));
cmd 'mode toggle';
# TODO: eliminate this race conditition
sleep 1;
sync_with_i3;
# kill old container
cmd qq|[con_id="$old"] focus|;
@ -33,7 +32,7 @@ cmd 'kill';
cmd qq|[con_id="$floating"] focus|;
is(get_focused($tmp), $floating, 'floating window focused');
sleep 1;
sync_with_i3;
cmd 'mode toggle';
does_i3_live;