diff --git a/tests/SixLabors.Shapes.Tests/RegularPolygonTests.cs b/tests/SixLabors.Shapes.Tests/RegularPolygonTests.cs index e1772b4..f7aa395 100644 --- a/tests/SixLabors.Shapes.Tests/RegularPolygonTests.cs +++ b/tests/SixLabors.Shapes.Tests/RegularPolygonTests.cs @@ -56,7 +56,7 @@ namespace SixLabors.Shapes.Tests public void GeneratesCorrectPath() { float radius = 10; - int pointsCount = new Random().Next(3, 99); + int pointsCount = new Random().Next(3, 20); var poly = new RegularPolygon(Vector2.Zero, pointsCount, radius, 0); var path = poly.AsPath(); @@ -76,8 +76,8 @@ namespace SixLabors.Shapes.Tests } var actual = Vector2.Distance(points[i], points[j]); - Assert.Equal(baseline, actual, 4); - Assert.Equal(radius, Vector2.Distance(Vector2.Zero, points[i]), 4); + Assert.Equal(baseline, actual, 3); + Assert.Equal(radius, Vector2.Distance(Vector2.Zero, points[i]), 3); } }