Skip to content

Commit

Permalink
revert not related modify
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu committed Feb 27, 2024
1 parent f8c38d7 commit 2bcab4d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/test/java/com/alipay/oceanbase/rpc/ObTableClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,7 @@ public void testQueryWithEmptyTable() throws Exception {
new Object[]{new byte[]{1}, "row1"});
} catch (IllegalArgumentException e) {
Assert.assertEquals("table name is null",
((IllegalArgumentException) e).getMessage());
((IllegalArgumentException) e).getMessage());
}
try {
TableQuery tableQuery = client.query("");
Expand All @@ -2507,7 +2507,7 @@ public void testQueryWithEmptyTable() throws Exception {
QueryResultSet result = tableQuery.execute();
} catch (IllegalArgumentException e) {
Assert.assertEquals("table name is null",
((IllegalArgumentException) e).getMessage());
((IllegalArgumentException) e).getMessage());
}
// test insertOrUpdate
final ObTableClient client1 = ObTableClientTestUtil.newTestClient();
Expand All @@ -2518,13 +2518,12 @@ public void testQueryWithEmptyTable() throws Exception {
long lastTime = getMaxAccessTime(client1);
Thread.sleep(10000);
// test_query_filter_mutate
client1.insertOrUpdate("", "foo", new String[]{"c2"},
new String[]{"bar"});
client1.insertOrUpdate("", "foo", new String[] { "c2" },
new String[] { "bar" });
long nowTime = getMaxAccessTime(client1);
Assert.assertTrue(nowTime - lastTime > 8000);
} catch (IllegalArgumentException e) {
} catch (IllegalArgumentException e) {
Assert.assertEquals("table name is null",
((IllegalArgumentException) e).getMessage());
}
((IllegalArgumentException) e).getMessage()); }
}
}

0 comments on commit 2bcab4d

Please sign in to comment.