Skip to content

Commit

Permalink
Merge pull request #197 from markus456/patch-1
Browse files Browse the repository at this point in the history
Use 32760 as the "unused" port number
  • Loading branch information
rusher authored Oct 25, 2024
2 parents 8be57f3 + 892d115 commit 10dded2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/mariadb/jdbc/integration/ErrorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public void deadLockInformation() throws SQLException {
@Test
public void connectionErrorFormat() throws SQLException {
try {
DriverManager.getConnection("jdbc:mariadb://localhost:3000/db");
// Port 32760 should hopefully not have a MariaDB instance running on it.
DriverManager.getConnection("jdbc:mariadb://localhost:32760/db");
fail("Must have thrown an error");
} catch (SQLException e) {
assertEquals("08000", e.getSQLState());
Expand Down

0 comments on commit 10dded2

Please sign in to comment.