Changeset 14566 in josm


Ignore:
Timestamp:
2018-12-16T15:00:44+01:00 (3 months ago)
Author:
Don-vip
Message:

see #16073 - double timeouts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r14564 r14566  
    7373    @Rule
    7474    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    75     public JOSMTestRules test = new JOSMTestRules().https().preferences().projection().projectionNadGrids().timeout(10000*120);
     75    public JOSMTestRules test = new JOSMTestRules().https().preferences().projection().projectionNadGrids()
     76                                                   .timeout((int) TimeUnit.MINUTES.toMillis(40));
    7677
    7778    private final Map<String, Map<ImageryInfo, List<String>>> errors = Collections.synchronizedMap(new TreeMap<>());
     
    106107                Response response = HttpClient.create(new URL(url))
    107108                        .setHeaders(info.getCustomHttpHeaders())
    108                         .setConnectTimeout((int) TimeUnit.SECONDS.toMillis(30))
    109                         .setReadTimeout((int) TimeUnit.SECONDS.toMillis(60))
     109                        .setConnectTimeout((int) TimeUnit.MINUTES.toMillis(1))
     110                        .setReadTimeout((int) TimeUnit.MINUTES.toMillis(2))
    110111                        .connect();
    111112                if (response.getResponseCode() >= 400) {
Note: See TracChangeset for help on using the changeset viewer.