[TEST] Reduce size of random shapes
This commit reduces the size of the random generated shapes for eliminating stalled `geo_shape` testing. closes #17245
This commit is contained in:
parent
6c15e782af
commit
43d0d3e11f
|
@ -293,8 +293,9 @@ public class RandomShapeGenerator extends RandomGeoGenerator {
|
||||||
xDivisible(yRange.getMax()*10e3)/10e3);
|
xDivisible(yRange.getMax()*10e3)/10e3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** creates a small random rectangle by default to keep shape test performance at bay */
|
||||||
public static Rectangle xRandomRectangle(Random r, Point nearP) {
|
public static Rectangle xRandomRectangle(Random r, Point nearP) {
|
||||||
return xRandomRectangle(r, nearP, ctx.getWorldBounds(), false);
|
return xRandomRectangle(r, nearP, ctx.getWorldBounds(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Rectangle xRandomRectangle(Random r, Point nearP, boolean small) {
|
public static Rectangle xRandomRectangle(Random r, Point nearP, boolean small) {
|
||||||
|
|
Loading…
Reference in New Issue