Skip to content

Commit 35992b4

Browse files
committed
allow serverless
1 parent 77ae632 commit 35992b4

File tree

1 file changed

+8
-1
lines changed
  • x-pack/plugin/esql/qa/server/mixed-cluster/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/mixed

1 file changed

+8
-1
lines changed

x-pack/plugin/esql/qa/server/mixed-cluster/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/mixed/FieldExtractorIT.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ protected Matcher<Integer> pidMatcher() {
4343

4444
@Override
4545
protected void canUsePragmasOk() {
46-
Version oldVersion = Version.fromString(System.getProperty("tests.old_cluster_version"));
46+
String bwc = System.getProperty("tests.old_cluster_version");
47+
if (bwc == null) {
48+
bwc = System.getProperty("tests.tests.serverless.bwc_stack_version");
49+
}
50+
if (bwc == null) {
51+
throw new AssertionError("can't find bwc version");
52+
}
53+
Version oldVersion = Version.fromString();
4754
assumeTrue("pragma ok not supported", oldVersion.onOrAfter("8.16.0"));
4855
}
4956
}

0 commit comments

Comments
 (0)