Skip to content

Commit fa52199

Browse files
authored
Merge pull request #177 from oceanbase/fix_del_case
fix del case
2 parents 81ba9af + 15382be commit fa52199

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/alipay/oceanbase/hbase/secondary/OHTableSecondaryPartDeleteTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static void testDeleteLastVersionImpl(String tableName) throws Exception
8888
get.setMaxVersions();
8989
Result result = hTable.get(get);
9090
Assert.assertEquals(3, result.size()); // ts4 is deleted
91-
Assert.assertEquals(value, result.getValue(family.getBytes(), column.getBytes()));
91+
Assert(tableName, () -> Assert.assertTrue(secureCompare(value.getBytes(), result.getValue(family.getBytes(), column.getBytes()))));
9292
for (Cell cell : result.rawCells()) {
9393
Assert.assertTrue(cell.getTimestamp() != ts4);
9494
}
@@ -440,8 +440,7 @@ public static void testMultiCFDeleteFamilyVersionImpl(Map.Entry<String, List<Str
440440
get.addColumn(toBytes(family), toBytes(column + family));
441441
}
442442
Result result = hTable.get(get);
443-
Assert.assertEquals(2 * 3, result.size());
444-
Assert(entry.getValue(), ()->Assert.assertEquals(0, result.size()));
443+
Assert(entry.getValue(), ()->Assert.assertEquals(6, result.size()));
445444
}
446445

447446
public static void testDeleteAllImpl(Map.Entry<String, List<String>> entry) throws Exception {

0 commit comments

Comments
 (0)