Skip to content

Commit 178cce9

Browse files
author
Peter
committed
avoid hitting the node with indifferent result and possible duplicated end node
1 parent 8c0d80c commit 178cce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/com/graphhopper/GraphHopperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ public void testFootOnly()
515515
assertEquals(2, instance.getGraphHopperStorage().getAllEdges().getMaxId());
516516

517517
// A to E only for foot
518-
GHResponse res = instance.route(new GHRequest(11.1, 50, 11.2, 52).setVehicle(EncodingManager.FOOT));
518+
GHResponse res = instance.route(new GHRequest(11.1, 50, 11.2, 52.01).setVehicle(EncodingManager.FOOT));
519519
assertFalse(res.hasErrors());
520-
assertEquals(Helper.createPointList(11.1, 50, 10, 51, 11.2, 52, 11.2, 52), res.getPoints());
520+
assertEquals(Helper.createPointList(11.1, 50, 10, 51, 11.2, 52), res.getPoints());
521521
}
522522

523523
@Test

0 commit comments

Comments
 (0)