Skip to content

Commit

Permalink
fix java test case
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Jun 26, 2024
1 parent 42973b5 commit 554033f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/src/test/java/com/oceanbase/test/LogProxyCETest.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ public void onException(LogProxyClientException e) {
Assertions.assertEquals("1", fieldMap.get("id"));
Assertions.assertEquals("meat", fieldMap.get("name"));

try (Connection conn = driver.connect("jdbc:mysql://" + observerIP + ":2881/test", props);
Statement statement = conn.createStatement()) {
statement.execute("DROP TABLE t_product");
} catch (SQLException e) {
Assertions.fail(e);
}

client.stop();
}
}

0 comments on commit 554033f

Please sign in to comment.