From daee3218c9aec3499bf128ba1649099d4f93bcd9 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 29 Jun 2012 21:28:10 +0200 Subject: [PATCH] tests: make t/166-assign.t more robust MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit …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. --- testcases/t/166-assign.t | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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; -- 2.39.2