Skip to content

Commit 44bd65b

Browse files
authored
[8.17][ML] Bump client timeout for model download test (#116586)
* [ML] Bump client timeout for model download test (#116247) # Conflicts: # muted-tests.yml * un mute
1 parent 23dfcdd commit 44bd65b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,6 @@ tests:
296296
- class: org.elasticsearch.search.basic.SearchWhileRelocatingIT
297297
method: testSearchAndRelocateConcurrentlyRandomReplicas
298298
issue: https://github.com/elastic/elasticsearch/issues/116145
299-
- class: org.elasticsearch.xpack.inference.InferenceRestIT
300-
method: test {p0=inference/40_semantic_text_query/Query a field that uses the default ELSER 2 endpoint}
301-
issue: https://github.com/elastic/elasticsearch/issues/114376
302299
- class: org.elasticsearch.xpack.core.security.authz.RoleDescriptorTests
303300
method: testHasPrivilegesOtherThanIndex
304301
issue: https://github.com/elastic/elasticsearch/issues/116376

x-pack/plugin/inference/src/yamlRestTest/java/org/elasticsearch/xpack/inference/InferenceRestIT.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1111

12+
import org.elasticsearch.common.settings.Settings;
1213
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1314
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
1415
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
@@ -30,6 +31,15 @@ public InferenceRestIT(final ClientYamlTestCandidate testCandidate) {
3031
super(testCandidate);
3132
}
3233

34+
@Override
35+
protected Settings restClientSettings() {
36+
var baseSettings = super.restClientSettings();
37+
return Settings.builder()
38+
.put(baseSettings)
39+
.put(CLIENT_SOCKET_TIMEOUT, "120s") // Long timeout for model download
40+
.build();
41+
}
42+
3343
@Override
3444
protected String getTestRestCluster() {
3545
return cluster.getHttpAddresses();

0 commit comments

Comments
 (0)