This commit is contained in:
zyyang 2021-02-25 17:07:12 +08:00
parent 6e3dc3b762
commit d30a9836b2
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.taosdata.jdbc.cases; package com.taosdata.jdbc.cases;
import com.taosdata.jdbc.TSDBErrorNumbers;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
@ -16,7 +17,7 @@ public class ConnectWrongDatabaseTest {
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
} catch (SQLException e) { } catch (SQLException e) {
Assert.assertEquals(-2, e.getErrorCode()); Assert.assertEquals(TSDBErrorNumbers.ERROR_JNI_CONNECTION_NULL, e.getErrorCode());
} }
} }