Skip to content

Commit fac4146

Browse files
committed
[CONJ-1272] Tests fail with early access JVM builds
1 parent 7a5a477 commit fac4146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/mariadb/jdbc/integration/CredentialPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public class CredentialPluginTest extends Common {
2121
*/
2222
@BeforeAll
2323
public static void beforeTest() throws SQLException {
24-
String version = System.getProperty("java.version");
24+
String version = System.getProperty("java.version").replaceAll("[^.\\d]", "");
2525
int majorVersion =
26-
(version.indexOf(".") >= 0)
26+
(version.contains("."))
2727
? Integer.parseInt(version.substring(0, version.indexOf(".")))
2828
: Integer.parseInt(version);
2929
Assumptions.assumeTrue(majorVersion < 17);

0 commit comments

Comments
 (0)