Ignore:
Timestamp:
2016-05-30T09:24:08+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #12583 - fix unit tests by adding a new mode to HttpClient. Don't know if it's the best way to do it...

File:
1 edited

Legend:

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

    r9807 r10302  
    101101                .setHeader("Content-Type", "text/plain")
    102102                .setRequestBody(text.getBytes(StandardCharsets.UTF_8))
     103                .setFinishOnCloseOutput(false) // to fix #12583, not sure if it's the best way to do it
    103104                .connect(progress);
    104105        assertThat(response.getResponseCode(), is(200));
     
    114115                .setHeader("Content-Type", "text/plain")
    115116                .setRequestBody("".getBytes(StandardCharsets.UTF_8))
     117                .setFinishOnCloseOutput(false) // to fix #12583, not sure if it's the best way to do it
    116118                .connect(progress);
    117119        assertThat(response.getResponseCode(), is(200));
Note: See TracChangeset for help on using the changeset viewer.