diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java index 75d365db783807591e55b36039ba3f14c0f9da0b..e671ac912373f02850ddf76d04205e581f5b6f45 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java @@ -15,10 +15,10 @@ public class TSDBJNIConnectorTest { public void test() { try { // init - TSDBJNIConnector.init("/etc/taos/taos.cfg", "en_US.UTF-8", "", ""); + TSDBJNIConnector.init(null, null, null, null); // connect TSDBJNIConnector connector = new TSDBJNIConnector(); - connector.connect("", 0, "test", "root", "taosdata"); + connector.connect("127.0.0.1", 6030, null, "root", "taosdata"); // executeQuery long pSql = connector.executeQuery("show variable"); if (connector.isUpdateQuery(pSql)) {