This commit is contained in:
zyyang 2020-11-04 19:15:27 +08:00
parent 60d04f8121
commit dd2732ea68
1 changed files with 1 additions and 3 deletions

View File

@ -136,10 +136,8 @@ public class TSDBDriverTest {
assertNotNull("failure - connection should not be null", conn);
}
} catch (SQLException e) {
e.printStackTrace();
if (!isTaosdActived) {
System.out.println(e.getMessage());
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
assertEquals("failure - should throw SQLException", SQLException.class, e.getClass());
} else {
fail("failure - should not throw Exception");
}