Skip to content

Commit

Permalink
fix test case error code not match (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu authored Jan 10, 2024
1 parent d61015f commit be88ab4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/com/alipay/oceanbase/rpc/ObTableClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ public void testMutation() throws Exception {
Assert.assertTrue(false);
} catch (Exception e) {
Assert.assertTrue(e instanceof ObTableException);
Assert.assertEquals(ResultCodes.OB_ERR_DOUBLE_TRUNCATED.errorCode,
Assert.assertEquals(ResultCodes.OB_NOT_SUPPORTED.errorCode,
((ObTableException) e).getErrorCode());
}
// increment non-integer column with filter
Expand All @@ -1836,7 +1836,7 @@ public void testMutation() throws Exception {
.setFilter(compareVal(ObCompareOp.EQ, "c4", 200L)).execute();
} catch (Exception e) {
Assert.assertTrue(e instanceof ObTableException);
Assert.assertEquals(ResultCodes.OB_ERR_DOUBLE_TRUNCATED.errorCode,
Assert.assertEquals(ResultCodes.OB_NOT_SUPPORTED.errorCode,
((ObTableException) e).getErrorCode());
}

Expand All @@ -1859,7 +1859,7 @@ public void testMutation() throws Exception {
.addMutateColVal(colVal("c4", new byte[1])).execute();
} catch (Exception e) {
Assert.assertTrue(e instanceof ObTableException);
Assert.assertEquals(ResultCodes.OB_KV_COLUMN_TYPE_NOT_MATCH.errorCode,
Assert.assertEquals(ResultCodes.OB_NOT_SUPPORTED.errorCode,
((ObTableException) e).getErrorCode());
}

Expand All @@ -1871,7 +1871,7 @@ public void testMutation() throws Exception {
.setFilter(compareVal(ObCompareOp.EQ, "c4", 200L)).execute();
} catch (Exception e) {
Assert.assertTrue(e instanceof ObTableException);
Assert.assertEquals(ResultCodes.OB_KV_COLUMN_TYPE_NOT_MATCH.errorCode,
Assert.assertEquals(ResultCodes.OB_NOT_SUPPORTED.errorCode,
((ObTableException) e).getErrorCode());
}

Expand Down

0 comments on commit be88ab4

Please sign in to comment.