Skip to content

Commit 2ad8607

Browse files
committed
PR feedback from Slack
1 parent 1511506 commit 2ad8607

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,11 @@
5050
public class VectorTileRestIT extends ESRestTestCase {
5151

5252
@ClassRule
53-
public static ElasticsearchCluster cluster = buildCluster();
54-
55-
private static ElasticsearchCluster buildCluster() {
56-
var builder = ElasticsearchCluster.local().module("vector-tile").setting("xpack.license.self_generated.type", "trial");
57-
53+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("vector-tile").apply(c -> {
5854
if (Build.current().isSnapshot()) {
59-
// This module is not available in non-snapshot builds
60-
// The tests below that use it are disabled in non-snapshot builds
61-
builder.module("test-error-query");
55+
c.module("test-error-query");
6256
}
63-
64-
return builder.build();
65-
}
57+
}).setting("xpack.license.self_generated.type", "trial").build();
6658

6759
private static final String INDEX_POINTS = "index-points";
6860
private static final String INDEX_POLYGON = "index-polygon";

0 commit comments

Comments
 (0)