Skip to content

Commit 76f768c

Browse files
committed
Adjust test of graphhopper#471
1 parent 0a43887 commit 76f768c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

reader-osm/src/test/java/com/graphhopper/reader/osm/GraphHopperOSMTest.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ protected boolean goFurther(int nodeId) {
207207
}
208208

209209
@Test
210-
public void testLoadingWithDifferentCHConfig_issue471() {
211-
// with CH should not be loadable without CH configured
210+
public void testLoadingWithDifferentCHConfig_issue471_pr1488() {
211+
// when there is a single CH profile we can also load GraphHopper without it
212+
// in #471 this was forbidden, but later it was allowed again, see #1488
212213
GraphHopper gh = createGraphHopper("car").
213214
setStoreOnFlush(true).
214215
setGraphHopperLocation(ghLoc).
@@ -221,12 +222,8 @@ public void testLoadingWithDifferentCHConfig_issue471() {
221222

222223
gh = createGraphHopper("car").
223224
setStoreOnFlush(true).setCHEnabled(false);
224-
try {
225-
gh.load(ghLoc);
226-
fail();
227-
} catch (Exception ex) {
228-
assertTrue(ex.getMessage(), ex.getMessage().startsWith("You loaded a CH graph, but you did not specify any CH weightings in prepare.ch.weightings"));
229-
}
225+
gh.load(ghLoc);
226+
// no error
230227

231228
Helper.removeDir(new File(ghLoc));
232229

0 commit comments

Comments
 (0)