mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure fails run with -Xcomp
Reviewed-by: vyazici, dfuchs
This commit is contained in:
parent
fb526c8f45
commit
d8f45faf58
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user