[jdk11u-dev] RFR: 8286293: Tests ShortResponseBody and ShortResponseBodyWithRetry should use less resources
Martin Doerr
mdoerr at openjdk.java.net
Thu May 19 10:07:07 UTC 2022
On Wed, 18 May 2022 13:31:28 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
> I backport this test-only change for parity with 11.0.17-oracle.
>
> I did the following adaptions:
> ShortResponseBody.java
> * Adapt test run specification to requirements of 11.
> This did not match in this file, but all other files
> needed fixes, too.
> * Resolve includes
> * Removal of four methods did not apply clean.
> The methods were moved to the new files.
> I dropped the old implementation and am using the
> new ones in the new files except for assertExpectedMessage()
> which is not in 11.
>
> ShortResponseBodyPostWithRetry.java
> * test run specification: different context
>
> Tests are compiling and passing.
Adaptations LGTM. Please check missing removal of MSGS_ORDER.
test/jdk/java/net/httpclient/ShortResponseBody.java line 344:
> 342: // Strictly ordered list, in order of possible occurrence.
> 343: static final List<String> MSGS_ORDER =
> 344: List.of("no bytes", "status line", "header");
Original change removed this. Looks unused.
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/1095
More information about the jdk-updates-dev
mailing list