Skip to content

Commit be84b0e

Browse files
committed
Expect null version in MixedClusterEsqlSpecIT
This is needed explicitly now for serverless tests. Previously it was also null but was implicit.
1 parent 0d120ba commit be84b0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ protected String getTestRestCluster() {
3232
return cluster.getHttpAddresses();
3333
}
3434

35-
static final Version bwcVersion = Version.fromString(System.getProperty("tests.old_cluster_version").replace("-SNAPSHOT", ""));
35+
static final Version bwcVersion = Version.fromString(
36+
System.getProperty("tests.old_cluster_version") != null ?
37+
System.getProperty("tests.old_cluster_version").replace("-SNAPSHOT", "") :
38+
null);
3639

3740
private static TestFeatureService oldClusterTestFeatureService = null;
3841

0 commit comments

Comments
 (0)