提交 dd2732ea 编写于 作者: Z zyyang

change

上级 60d04f81
......@@ -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");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册