Fix test 517
Patch status: merged
Patch by Tony Crisci
Long description:
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.
To apply this patch, use:
curl http://cr.i3wm.org/patch/554/raw.patch | git am
b/testcases/t/517-regress-move-direction-ipc.t
17 |
@@ -68,7 +68,11 @@ is(@{$event->{current}->{nodes}}, 1, 'focus event gave the right number of windo |
18 |
|
19 |
# reset and try again |
20 |
$focus = AnyEvent->condvar; |
21 |
-cmd 'workspace ws-left; move right'; |
22 |
+cmd 'workspace ws-left'; |
23 |
+$focus->recv; |
24 |
+ |
25 |
+$focus = AnyEvent->condvar; |
26 |
+cmd 'move right'; |
27 |
$event = $focus->recv; |
28 |
ok($event, 'moving from workspace with one window triggered focus ipc event'); |
29 |
is($event->{current}->{name}, 'ws-right', 'focus event gave the right workspace'); |