Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ratrun committed Sep 22, 2024
1 parent f3203cb commit 4a4b580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/java/com/graphhopper/GraphHopperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ public void testAvoidNoiseNearby() {
assertEquals(42, detailList.get(2).getLast());

//Check the result of the route with avoiding the noisy roads nearby
CustomModel customModel = profile.getCustomModel();
CustomModel customModel = new CustomModel();
customModel.getPriority().add(If("noisy_road_nearby", MULTIPLY, "0.8"));
GHResponse rspAvoidNoisyRoad = hopper.route(req.setProfile(profileName).setCustomModel(customModel));
assertFalse(rspAvoidNoisyRoad.hasErrors(), rspAvoidNoisyRoad.getErrors().toString());
Expand Down

0 comments on commit 4a4b580

Please sign in to comment.