Skip to content

Commit eaac8ee

Browse files
authored
Fix vector-tile tests when run on non-snapshot builds (#126251)
1 parent c06cbb6 commit eaac8ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
public class VectorTileRestIT extends ESRestTestCase {
5151

5252
@ClassRule
53-
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
54-
.module("vector-tile")
55-
.module("test-error-query")
56-
.setting("xpack.license.self_generated.type", "trial")
57-
.build();
53+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("vector-tile").apply(c -> {
54+
if (Build.current().isSnapshot()) {
55+
c.module("test-error-query");
56+
}
57+
}).setting("xpack.license.self_generated.type", "trial").build();
5858

5959
private static final String INDEX_POINTS = "index-points";
6060
private static final String INDEX_POLYGON = "index-polygon";

0 commit comments

Comments
 (0)