Fix flakyness in t/189-floating-constraints.t

Related to #3009.
next
Orestis Floros 2018-10-10 19:14:26 +03:00
parent dfe89cc4f1
commit e2d095cb7a
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 2 additions and 1 deletions

View File

@ -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;