Skip to content

Commit d2f7e9d

Browse files
committed
use assumeTrue instead
1 parent 2696ed3 commit d2f7e9d

File tree

1 file changed

+1
-3
lines changed
  • x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample

1 file changed

+1
-3
lines changed

x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ public void testAggMetricInEsqlTSAfterDownsampling() throws Exception {
222222
var response = clusterAdmin().nodesCapabilities(
223223
new NodesCapabilitiesRequest().method(RestRequest.Method.POST).path("/_query").capabilities(METRICS_COMMAND.capabilityName())
224224
).actionGet();
225-
if (response.isSupported().orElse(Boolean.FALSE) == false) {
226-
return;
227-
}
225+
assumeTrue("TS command must be available for this test", response.isSupported().orElse(Boolean.FALSE));
228226

229227
// Since the downsampled field (cpu) is downsampled in one index and not in the other, we want to confirm
230228
// first that the field is unsupported and has 2 original types - double and aggregate_metric_double

0 commit comments

Comments
 (0)