Merge pull request #3445 from orestisf1993/flaky
Fix flakyness in t/189-floating-constraints.t
This commit is contained in:
commit
66d504f3cd
|
@ -265,11 +265,13 @@ my sub open_with_max_size {
|
||||||
}
|
}
|
||||||
|
|
||||||
my sub check_minsize {
|
my sub check_minsize {
|
||||||
|
sync_with_i3;
|
||||||
is($window->rect->{width}, $min_width, 'width = min_width');
|
is($window->rect->{width}, $min_width, 'width = min_width');
|
||||||
is($window->rect->{height}, $min_height, 'height = min_height');
|
is($window->rect->{height}, $min_height, 'height = min_height');
|
||||||
}
|
}
|
||||||
|
|
||||||
my sub check_maxsize {
|
my sub check_maxsize {
|
||||||
|
sync_with_i3;
|
||||||
is($window->rect->{width}, $max_width, 'width = max_width');
|
is($window->rect->{width}, $max_width, 'width = max_width');
|
||||||
is($window->rect->{height}, $max_height, 'height = max_height');
|
is($window->rect->{height}, $max_height, 'height = max_height');
|
||||||
}
|
}
|
||||||
|
@ -279,7 +281,6 @@ $pid = launch_with_config($config);
|
||||||
$window = open_with_max_size;
|
$window = open_with_max_size;
|
||||||
cmd 'floating enable';
|
cmd 'floating enable';
|
||||||
cmd 'border none';
|
cmd 'border none';
|
||||||
sync_with_i3;
|
|
||||||
|
|
||||||
cmd "resize set $min_width px $min_height px";
|
cmd "resize set $min_width px $min_height px";
|
||||||
check_minsize;
|
check_minsize;
|
||||||
|
|
Loading…
Reference in New Issue