Merge pull request #4656 from stapelberg/flaky
Fix flaky tests: sync after kill
This commit is contained in:
commit
43e805a00d
@ -972,6 +972,8 @@ sub kill_all_windows {
|
||||
# Sync in case not all windows are managed by i3 just yet.
|
||||
sync_with_i3;
|
||||
cmd '[title=".*"] kill';
|
||||
# Sync to make sure x_window_kill() calls have taken effect.
|
||||
sync_with_i3;
|
||||
}
|
||||
|
||||
=head2 events_for($subscribecb, [ $rettype ], [ $eventcbs ])
|
||||
|
@ -56,7 +56,11 @@ sub kill_subtest {
|
||||
my $focus = AnyEvent->condvar;
|
||||
|
||||
my @events = events_for(
|
||||
sub { cmd $cmd },
|
||||
sub {
|
||||
cmd $cmd;
|
||||
# Sync to make sure x_window_kill() calls have taken effect.
|
||||
sync_with_i3;
|
||||
},
|
||||
'window');
|
||||
|
||||
is(scalar @events, 1, 'Received 1 event');
|
||||
|
Loading…
x
Reference in New Issue
Block a user