From: Michael Stapelberg Date: Fri, 29 Jun 2012 19:28:10 +0000 (+0200) Subject: tests: make t/166-assign.t more robust X-Git-Tag: 4.3~197 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=daee3218c9aec3499bf128ba1649099d4f93bcd9;p=i3%2Fi3 tests: make t/166-assign.t more robust …by using the new syntax which will not trigger i3-nagbar. Checking for i3-nagbar is inherently prone to race conditions since i3-nagbar does not communicate in any way that it’s there. --- diff --git a/testcases/t/166-assign.t b/testcases/t/166-assign.t index d79c1000..a4a70c8b 100644 --- a/testcases/t/166-assign.t +++ b/testcases/t/166-assign.t @@ -206,24 +206,16 @@ sub i3nagbar_running { $config = < $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'), @@ -233,7 +225,7 @@ $content = get_ws($tmp); ok(@{$content->{nodes}} == 0, 'no tiling cons'); ok(@{$content->{floating_nodes}} == 0, 'one floating con'); @docked = get_dock_clients; -is(@docked, 2, 'two dock clients now'); +is(@docked, 1, 'one dock client now'); $window->destroy;