Skip to content

Commit

Permalink
允许null之后,需要调整断言写法
Browse files Browse the repository at this point in the history
需要调整断言写法
  • Loading branch information
lizongbo committed Mar 23, 2024
1 parent 716e42b commit 431d02e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ public void test_wait() throws Exception {
Exception error = null;
try {
DruidPooledConnection conn = dataSource.getConnection();
conn.close();
assertNull(conn);
//conn.close();
} catch (SQLException ex) {
error = ex;
}
assertEquals("url not set", error.getMessage());
//assertEquals("url not set", error.getMessage());
}
}

0 comments on commit 431d02e

Please sign in to comment.