Skip to content

Commit 82f2fb5

Browse files
fix test to not run when the FF is disabled (#114260)
Fixes #113661 Don't run the tests when the feature is disabled. Co-authored-by: Elastic Machine <[email protected]>
1 parent 57fbbcb commit 82f2fb5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/reference/esql/functions/kibana/definition/to_date_nanos.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ tests:
206206
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
207207
method: test {categorize.Categorize SYNC}
208208
issue: https://github.com/elastic/elasticsearch/issues/113722
209-
- class: org.elasticsearch.xpack.esql.expression.function.scalar.convert.ToDateNanosTests
210-
issue: https://github.com/elastic/elasticsearch/issues/113661
211209
- class: org.elasticsearch.ingest.geoip.DatabaseNodeServiceIT
212210
method: testNonGzippedDatabase
213211
issue: https://github.com/elastic/elasticsearch/issues/113821

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert/ToDateNanosTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1212

1313
import org.elasticsearch.common.time.DateUtils;
14+
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
1415
import org.elasticsearch.xpack.esql.core.expression.Expression;
1516
import org.elasticsearch.xpack.esql.core.tree.Source;
1617
import org.elasticsearch.xpack.esql.core.type.DataType;
@@ -29,6 +30,9 @@ public ToDateNanosTests(@Name("TestCase") Supplier<TestCaseSupplier.TestCase> te
2930

3031
@ParametersFactory
3132
public static Iterable<Object[]> parameters() {
33+
if (EsqlCapabilities.Cap.TO_DATE_NANOS.isEnabled() == false) {
34+
return List.of();
35+
}
3236
final String read = "Attribute[channel=0]";
3337
final List<TestCaseSupplier> suppliers = new ArrayList<>();
3438

0 commit comments

Comments
 (0)