Skip to content

Commit a17dd74

Browse files
authored
Fix test failure by checking for feature flag (#135174)
1 parent e6d78b0 commit a17dd74

File tree

1 file changed

+4
-1
lines changed
  • modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams

1 file changed

+4
-1
lines changed

modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/TSDBIndexingIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ public void testTsdbTemplatesNoKeywordFieldType() throws Exception {
331331
new Template(
332332
Settings.builder()
333333
.put("index.mode", "time_series")
334-
.put("index.routing_path", randomBoolean() ? "metricset" : null)
334+
.put(
335+
"index.routing_path",
336+
randomBoolean() && INDEX_DIMENSIONS_TSID_OPTIMIZATION_FEATURE_FLAG ? null : "metricset"
337+
)
335338
.build(),
336339
new CompressedXContent(mappingTemplate),
337340
null

0 commit comments

Comments
 (0)