[search][tests] Fix unstable test: mwm should intersect viewport for MatchAroundPivot.

This commit is contained in:
tatiana-yan 2020-04-07 18:30:29 +03:00 committed by mpimenov
parent 545bad15ad
commit cf1c8370f1

View file

@ -114,7 +114,7 @@ UNIT_CLASS_TEST(RankerTest, PreferCountry)
builder.Add(cafe);
});
SetViewport(m2::RectD(m2::PointD(-1.0, -1.0), m2::PointD(0.0, 0.0)));
SetViewport(m2::RectD(m2::PointD(0.0, 0.0), m2::PointD(1.0, 1.0)));
{
// Country which exactly matches the query should be preferred even if cafe is much closer to
// viewport center.