This commit is contained in:
zyyang 2020-11-19 10:49:01 +08:00
parent 38459ed354
commit ad5474d8aa
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ public class FailOverTest {
Class.forName("com.taosdata.jdbc.TSDBDriver");
final String url = "jdbc:TAOS://:/?user=root&password=taosdata";
while (true) {
long end = System.currentTimeMillis() + 1000 * 60 * 5;
while (System.currentTimeMillis() < end) {
try (Connection conn = DriverManager.getConnection(url)) {
Statement stmt = conn.createStatement();
ResultSet resultSet = stmt.executeQuery("select server_status()");