Skip to content

Commit

Permalink
integration test debug style
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgd67 committed Sep 30, 2024
1 parent f083373 commit b2ebf53
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +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);
if (bodyLen != messageExt.getBody().length) {
logger.error("decompress fail? {} {}", i, messageExt);
}
Assert.assertEquals(bodyLen, messageExt.getBody().length);

Check failure on line 272 in test/src/test/java/org/apache/rocketmq/test/client/producer/batch/BatchSendIT.java

View workflow job for this annotation

GitHub Actions / maven-compile (ubuntu-latest, JDK-8)

BatchSendIT.testBatchSend_CompressionBody

expected:<4097> but was:<2087>
Assert.assertTrue((messageExt.getSysFlag() & MessageSysFlag.COMPRESSED_FLAG) != 0);
Assert.assertTrue(messageExt.getStoreSize()<bodyLen);
Assert.assertTrue(messageExt.getStoreSize() < bodyLen);
}
}
}
Expand Down

0 comments on commit b2ebf53

Please sign in to comment.