Changeset 14527 in josm for trunk/test/unit
- Timestamp:
- 2018-12-08T23:04:08+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r14526 r14527 13 13 import java.util.Set; 14 14 import java.util.TreeMap; 15 import java.util.concurrent.TimeUnit; 15 16 16 17 import org.junit.Rule; … … 70 71 if (url != null && !url.isEmpty() && !workingURLs.contains(url)) { 71 72 try { 72 Response response = HttpClient.create(new URL(url)).setConnectTimeout(30).setReadTimeout(60).connect(); 73 Response response = HttpClient.create(new URL(url)) 74 .setConnectTimeout((int) TimeUnit.SECONDS.toMillis(30)) 75 .setReadTimeout((int) TimeUnit.SECONDS.toMillis(60)) 76 .connect(); 73 77 if (response.getResponseCode() >= 400) { 74 78 addError(info, url + " -> HTTP " + response.getResponseCode());
Note:
See TracChangeset
for help on using the changeset viewer.