From c79309eba8f371fbb757fb38c654c3a0346e29f2 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 18 May 2014 01:56:50 -0400 Subject: [PATCH] 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. --- testcases/t/517-regress-move-direction-ipc.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'); -- 2.39.5