diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java index 8739c88e79a1def8994c96f99d6cad16b1dbf7d7..69fdeba1101f811ba6e4299c6a4b41a0f96e48de 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java @@ -108,7 +108,7 @@ public class TSDBDriverTest { @Test public void testConnectWithJdbcURL() { - final String url = "jdbc:TAOS://localhost:3306/log?user=root&password=taosdata"; + final String url = "jdbc:TAOS://localhost:6030/log?user=root&password=taosdata"; try { if (islibLoaded) { Connection conn = DriverManager.getConnection(url); @@ -124,7 +124,7 @@ public class TSDBDriverTest { @Test public void testConnectWithProperties() { - final String jdbcUrl = "jdbc:TAOS://localhost.com:6030/test?user=root&password=taosdata"; + final String jdbcUrl = "jdbc:TAOS://localhost:6030/test?user=root&password=taosdata"; Properties connProps = new Properties(); connProps.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8"); connProps.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");