Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable commit trans test in grpc #22

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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