Skip to content

Commit

Permalink
[misc] test correction for ES server
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Oct 15, 2024
1 parent 32ca5d7 commit a66f05d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/test/java/org/mariadb/jdbc/integration/SslTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ private String getSslVersion(Connection con) throws SQLException {

@Test
public void simpleSsl() throws SQLException {
try (Connection con =
createCon(
"sslMode=trust&enabledSslCipherSuites=TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", sslPort)) {
try (Connection con = createCon("sslMode=trust", sslPort)) {
assertNotNull(getSslVersion(con));
}
try (Connection con = createCon("sslMode=trust&useReadAheadInput=false", sslPort)) {
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/org/mariadb/jdbc/integration/XaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ public void errorCodeTest() throws SQLException, XAException {
xaResource.commit(xid, true);
fail();
} catch (XAException xae) {
assertEquals(XAException.XAER_INVAL, xae.errorCode); // 1398
assertTrue(
XAException.XAER_INVAL == xae.errorCode
|| XAException.XAER_NOTA == xae.errorCode); // 1398
}
try {
xaResource.commit(xid, true);
Expand Down

0 comments on commit a66f05d

Please sign in to comment.