From: Orestis Floros Date: Wed, 10 Oct 2018 16:14:26 +0000 (+0300) Subject: Fix flakyness in t/189-floating-constraints.t X-Git-Tag: 4.16~12^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e2d095cb7aa9ef82796fa131de6934e46e574bfd;p=i3%2Fi3 Fix flakyness in t/189-floating-constraints.t Related to #3009. --- diff --git a/testcases/t/189-floating-constraints.t b/testcases/t/189-floating-constraints.t index 4ac95e15..ba5f76aa 100644 --- a/testcases/t/189-floating-constraints.t +++ b/testcases/t/189-floating-constraints.t @@ -265,11 +265,13 @@ my sub open_with_max_size { } my sub check_minsize { + sync_with_i3; is($window->rect->{width}, $min_width, 'width = min_width'); is($window->rect->{height}, $min_height, 'height = min_height'); } my sub check_maxsize { + sync_with_i3; is($window->rect->{width}, $max_width, 'width = max_width'); is($window->rect->{height}, $max_height, 'height = max_height'); } @@ -279,7 +281,6 @@ $pid = launch_with_config($config); $window = open_with_max_size; cmd 'floating enable'; cmd 'border none'; -sync_with_i3; cmd "resize set $min_width px $min_height px"; check_minsize;