From cc26e3028184c4fcb7a438ec0f6693c844012d4a Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Fri, 18 Oct 2019 21:13:45 +0300 Subject: [PATCH] Increase timeout for yml tests (#48237) Some of these are larger than what can complete in the regular timeout. Closes #48212 --- .../test/rest/yaml/ESClientYamlSuiteTestCase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/ESClientYamlSuiteTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/ESClientYamlSuiteTestCase.java index 703e30d19c2..1d0104e5598 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/ESClientYamlSuiteTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/ESClientYamlSuiteTestCase.java @@ -20,7 +20,9 @@ package org.elasticsearch.test.rest.yaml; import com.carrotsearch.randomizedtesting.RandomizedTest; +import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite; import org.apache.http.HttpHost; +import org.apache.lucene.util.TimeUnits; import org.elasticsearch.Version; import org.elasticsearch.client.Node; import org.elasticsearch.client.Request; @@ -60,7 +62,10 @@ import java.util.Set; /** * Runs a suite of yaml tests shared with all the official Elasticsearch * clients against against an elasticsearch cluster. + * + * The suite timeout is extended to account for projects with a large number of tests. */ +@TimeoutSuite(millis = 30 * TimeUnits.MINUTE) public abstract class ESClientYamlSuiteTestCase extends ESRestTestCase { /**