Skip to content

Commit

Permalink
Bump client timeout for model download
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Nov 5, 2024
1 parent 8f55168 commit 37df189
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.test.cluster.ElasticsearchCluster;
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
Expand All @@ -30,6 +31,15 @@ public InferenceRestIT(final ClientYamlTestCandidate testCandidate) {
super(testCandidate);
}

@Override
protected Settings restClientSettings() {
var baseSettings = super.restClientSettings();
return Settings.builder()
.put(baseSettings)
.put(CLIENT_SOCKET_TIMEOUT, "120s") // Long timeout for model download
.build();
}

@Override
protected String getTestRestCluster() {
return cluster.getHttpAddresses();
Expand Down

0 comments on commit 37df189

Please sign in to comment.