Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed Apr 29, 2024
1 parent e83e956 commit 9361c08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.openstreetmap.josm.data.coor.ILatLon;
import org.openstreetmap.josm.data.coor.LatLon;
import org.openstreetmap.josm.data.osm.DataSet;
import org.openstreetmap.josm.data.osm.IPrimitive;
import org.openstreetmap.josm.data.osm.Node;
import org.openstreetmap.josm.data.osm.OsmPrimitive;
import org.openstreetmap.josm.data.osm.Tagged;
Expand Down Expand Up @@ -409,7 +410,7 @@ void testCrossingNearIntersection() {
clickAt(39.0672264, -108.5508622);
clickAt(39.0672264, -108.5508622); // Finish drawing
final var crossing = this.ds.getWays().stream().filter(w -> !Arrays.asList(highwayOne, highwayTwo).contains(w))
.findFirst().orElseThrow();
.filter(not(IPrimitive::isDeleted)).findFirst().orElseThrow();
assertAll(() -> assertEquals("footway", crossing.get("highway")),
() -> assertEquals("crossing", crossing.get("footway")),
() -> assertEquals(3, crossing.getNodesCount()));
Expand Down

0 comments on commit 9361c08

Please sign in to comment.