t/219-ipc-window-focus.t: sync after kill

This commit is contained in:
Michael Stapelberg 2021-11-07 11:54:33 +01:00
parent c4fdcc5dbc
commit 673185a63b

View File

@ -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');