From dd2732ea68658996a7f0815ae79e0fc068d0a2c9 Mon Sep 17 00:00:00 2001 From: zyyang Date: Wed, 4 Nov 2020 19:15:27 +0800 Subject: [PATCH] change --- .../jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 db05c57b58..8718c3e7da 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 @@ -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"); }