Fix test 517

Test 517 was sometimes failing because the command to reset the test
generates a focus event which was not being properly ignored.

Now the correct event should always be tested.
This commit is contained in:
Tony Crisci 2014-05-18 01:56:50 -04:00 committed by Michael Stapelberg
parent 45fa4b7d23
commit c79309eba8

View File

@ -68,7 +68,11 @@ is(@{$event->{current}->{nodes}}, 1, 'focus event gave the right number of windo
# reset and try again
$focus = AnyEvent->condvar;
cmd 'workspace ws-left; move right';
cmd 'workspace ws-left';
$focus->recv;
$focus = AnyEvent->condvar;
cmd 'move right';
$event = $focus->recv;
ok($event, 'moving from workspace with one window triggered focus ipc event');
is($event->{current}->{name}, 'ws-right', 'focus event gave the right workspace');