Skip to content

Commit

Permalink
integration test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgd67 committed Sep 30, 2024
1 parent c99ff27 commit f083373
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,12 @@ public void testBatchSend_CompressionBody() throws Exception {
Assert.assertEquals(i + startOffset, messageExt.getQueueOffset());
Assert.assertEquals(batchTopic, messageExt.getTopic());
Assert.assertEquals(messageQueue.getQueueId(), messageExt.getQueueId());
if(bodyLen!=messageExt.getBody().length){
logger.error("decompress fail? {} {}",i,messageExt);
}
Assert.assertEquals(bodyLen, messageExt.getBody().length);
Assert.assertTrue((messageExt.getSysFlag() & MessageSysFlag.COMPRESSED_FLAG) != 0);
Assert.assertTrue(messageExt.getStoreSize()<bodyLen);
}
}
}
Expand Down

0 comments on commit f083373

Please sign in to comment.