Skip to content

Commit

Permalink
chore: disable commit trans test in grpc (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye authored Dec 8, 2023
1 parent f8d10db commit 4476d40
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void testTrans_SendRollback_PushConsume() {
Assertions.assertEquals(0, pushConsumer.getListener().getDequeueMessages().getDataSize());
}

@Disabled
@Test
@DisplayName("Send 10 transaction messages and COMMIT the transaction by Checker (perform COMMIT), expecting the 10 messages to be consumed by PushConsumer")
public void testTrans_SendCheckerCommit_PushConsume() {
Expand All @@ -143,6 +144,7 @@ public void testTrans_SendCheckerCommit_PushConsume() {
TestUtils.waitForSeconds(30);
Assertions.assertEquals(SEND_NUM, producer.getEnqueueMessages().getDataSize(), "send message failed");
Awaitility.await().atMost(Duration.ofSeconds(180)).until(() -> {
System.out.println("pushConsumer.getListener().getDequeueMessages().getDataSize():" + pushConsumer.getListener().getDequeueMessages().getDataSize());
return pushConsumer.getListener().getDequeueMessages().getDataSize() == SEND_NUM;
});
VerifyUtils.verifyNormalMessage(producer.getEnqueueMessages(), pushConsumer.getListener().getDequeueMessages());
Expand All @@ -169,6 +171,7 @@ public void testTrans_CheckerRollback() {
Assertions.assertEquals(0, pushConsumer.getListener().getDequeueMessages().getDataSize());
}

@Disabled
@Test
@DisplayName("Send 10 transactional messages and commit them by checking back (Checker commits for partial messages), and the expected committed messages can be consumed by PushConsumer")
public void testTrans_SendCheckerPartionCommit() {
Expand Down Expand Up @@ -205,6 +208,7 @@ public TransactionResolution check(MessageView messageView) {
await().atMost(180, SECONDS).until(new Callable<Boolean>() {
@Override
public Boolean call() {
System.out.println("commitMsgNum:" + commitMsgNum.get() + ",rollbackMsgNum:" + rollbackMsgNum.get());
return rollbackMsgNum.get() == commitMsgNum.get() && commitMsgNum.get() == SEND_NUM / 2;
}
});
Expand Down

0 comments on commit 4476d40

Please sign in to comment.