Skip to content

Commit a721fbe

Browse files
CASSANDRA-19635 - Run integration tests with C* 5.x
1 parent 9f1ef0a commit a721fbe

File tree

1 file changed

+4
-3
lines changed
  • test-infra/src/main/java/com/datastax/oss/driver/api/testinfra/ccm

1 file changed

+4
-3
lines changed

test-infra/src/main/java/com/datastax/oss/driver/api/testinfra/ccm/CcmBridge.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ public Version getCassandraVersion() {
197197
}
198198

199199
private String getCcmVersionString(Version version) {
200-
// for 4.0 pre-releases, the CCM version string needs to be "4.0-alpha1" or "4.0-alpha2"
201-
// Version.toString() always adds a patch value, even if it's not specified when parsing.
202-
if ((version.getMajor() == 4 || version.getMajor() == 5)
200+
// for 4.0 or 5.0 pre-releases, the CCM version string needs to be "4.0-alpha1", "4.0-alpha2" or
201+
// "5.0-beta1" Version.toString() always adds a patch value, even if it's not specified when
202+
// parsing.
203+
if (version.getMajor() >= 4
203204
&& version.getMinor() == 0
204205
&& version.getPatch() == 0
205206
&& version.getPreReleaseLabels() != null) {

0 commit comments

Comments
 (0)