8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure fails run with -Xcomp

Reviewed-by: vyazici, dfuchs
This commit is contained in:
SendaoYan 2026-01-15 02:40:36 +00:00
parent fb526c8f45
commit d8f45faf58

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2025, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -75,7 +75,8 @@ public class TimeoutResponseTestSupport {
private static final SSLContext SSL_CONTEXT = SimpleSSLContext.findSSLContext();
protected static final Duration REQUEST_TIMEOUT =
Duration.ofMillis(Long.parseLong(System.getProperty("test.requestTimeoutMillis")));
Duration.ofMillis(jdk.test.lib.Utils.adjustTimeout(
Long.parseLong(System.getProperty("test.requestTimeoutMillis"))));
static {
assertTrue(
@ -87,7 +88,8 @@ public class TimeoutResponseTestSupport {
Integer.parseInt(System.getProperty("jdk.httpclient.redirects.retrylimit", "0"));
private static final long RESPONSE_FAILURE_WAIT_DURATION_MILLIS =
Long.parseLong(System.getProperty("test.responseFailureWaitDurationMillis", "0"));
jdk.test.lib.Utils.adjustTimeout(
Long.parseLong(System.getProperty("test.responseFailureWaitDurationMillis", "0")));
static {
if (RETRY_LIMIT > 0) {