Skip to content

Commit 193e920

Browse files
authored
Use dynamic port range in testLoadsProxySettings (#96378)
Closes #95821
1 parent 77a80b0 commit 193e920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientSettingsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void testProjectIdDefaultsToCredentials() throws Exception {
132132
public void testLoadsProxySettings() throws Exception {
133133
final String clientName = randomAlphaOfLength(5);
134134
final ServiceAccountCredentials credential = randomCredential(clientName).v1();
135-
var proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getLoopbackAddress(), randomIntBetween(1024, 65536)));
135+
var proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(InetAddress.getLoopbackAddress(), randomIntBetween(49152, 65535)));
136136
final GoogleCloudStorageClientSettings googleCloudStorageClientSettings = new GoogleCloudStorageClientSettings(
137137
credential,
138138
ENDPOINT_SETTING.getDefault(Settings.EMPTY),

0 commit comments

Comments
 (0)