From: Tony Crisci Date: Sun, 18 May 2014 05:56:50 +0000 (-0400) Subject: Fix test 517 X-Git-Tag: 4.8~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c79309eba8f371fbb757fb38c654c3a0346e29f2;p=i3%2Fi3 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. --- diff --git a/testcases/t/517-regress-move-direction-ipc.t b/testcases/t/517-regress-move-direction-ipc.t index 45088c56..383b2779 100644 --- a/testcases/t/517-regress-move-direction-ipc.t +++ b/testcases/t/517-regress-move-direction-ipc.t @@ -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');