Skip to content

Commit

Permalink
Update error message after lucene upgrade (#84228)
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase authored Feb 22, 2022
1 parent f3d622d commit e5ed7da
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,10 @@ public void testCrossingDateline() {
assertTrue(geometry instanceof MultiPolygon);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/84212")
public void testPolygonAllCollinearPoints() {
Polygon polygon = new Polygon(new LinearRing(new double[] { 0, 1, -1, 0 }, new double[] { 0, 1, -1, 0 }));
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> indexer.indexShape(polygon));
assertEquals(
"Unable to Tessellate shape [[1.0, 1.0] [-1.0, -1.0] [0.0, 0.0] [1.0, 1.0] ]. Possible malformed shape detected.",
e.getMessage()
);
assertEquals("Unable to Tessellate shape. Possible malformed shape detected.", e.getMessage());
}

private XContentBuilder polygon(Boolean orientation, double... val) throws IOException {
Expand Down

0 comments on commit e5ed7da

Please sign in to comment.