Changeset 12562 in josm for trunk/test/functional


Ignore:
Timestamp:
2017-08-03T19:57:36+02:00 (2 years ago)
Author:
Don-vip
Message:

speedup unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java

    r12555 r12562  
    154154    @Test
    155155    public void testRelativeRedirects() throws IOException {
    156         final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/relative-redirect/5")).connect(progress);
     156        final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/relative-redirect/3")).connect(progress);
    157157        assertThat(response.getResponseCode(), is(200));
    158158        assertThat(response.getContentLength() > 100, is(true));
     
    161161    @Test
    162162    public void testAbsoluteRedirects() throws IOException {
    163         final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/absolute-redirect/5")).connect(progress);
     163        final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/absolute-redirect/3")).connect(progress);
    164164        assertThat(response.getResponseCode(), is(200));
    165165        assertThat(response.getContentLength() > 100, is(true));
     
    168168    @Test(expected = IOException.class)
    169169    public void testTooMuchRedirects() throws IOException {
    170         HttpClient.create(new URL("https://httpbin.org/redirect/5")).setMaxRedirects(4).connect(progress);
     170        HttpClient.create(new URL("https://httpbin.org/redirect/3")).setMaxRedirects(2).connect(progress);
    171171    }
    172172
Note: See TracChangeset for help on using the changeset viewer.