Changeset 14526 in josm for trunk/test/unit
- Timestamp:
- 2018-12-08T22:20:06+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r14524 r14526 28 28 import org.openstreetmap.josm.data.imagery.ImageryInfo; 29 29 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryBounds; 30 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType; 30 31 import org.openstreetmap.josm.data.imagery.ImageryLayerInfo; 31 32 import org.openstreetmap.josm.data.imagery.Shape; … … 69 70 if (url != null && !url.isEmpty() && !workingURLs.contains(url)) { 70 71 try { 71 Response response = HttpClient.create(new URL(url)). connect();72 Response response = HttpClient.create(new URL(url)).setConnectTimeout(30).setReadTimeout(60).connect(); 72 73 if (response.getResponseCode() >= 400) { 73 74 addError(info, url + " -> HTTP " + response.getResponseCode()); … … 180 181 checkTileUrl(info, tileSource, center, info.getMinZoom()); 181 182 // checking max zoom for real is complex, see https://josm.openstreetmap.de/ticket/16073#comment:27 182 if (info.getMaxZoom() > 0 ) {183 if (info.getMaxZoom() > 0 && info.getImageryType() != ImageryType.SCANEX) { 183 184 checkTileUrl(info, tileSource, center, Utils.clamp(12, info.getMinZoom() + 1, info.getMaxZoom())); 184 185 }
Note:
See TracChangeset
for help on using the changeset viewer.