Skip to content

Commit

Permalink
fix: fix the simple param and load balance test
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye committed Nov 14, 2023
1 parent f546ba9 commit 24d030f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public Boolean call() throws Exception {
consumer3.shutdown();
consumer4.shutdown();

VerifyUtils.waitForLoadBalance(topic, consumer1, consumer2);

producer.send(topic, tag, messageSize);

await().atMost(120, SECONDS).until(new Callable<Boolean>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void test_waitAckException_reReceive_ack() {
if (messageViews.size() > 0) {
for (MessageView messageView : messageViews) {
log.info("MessageId:{}, Body:{}, tag:{}, property:{}", messageView.getMessageId(), StandardCharsets.UTF_8.decode(messageView.getBody()).toString(), messageView.getTag().get(), messageView.getProperties());
TestUtils.waitForSeconds(15);
TestUtils.waitForSeconds(20);
consumer.ack(messageView);
Assertions.fail("Calling changeInvisibleDuration after ack fails with an INVALID_RECEIPT_HANDLE error");
}
Expand Down

0 comments on commit 24d030f

Please sign in to comment.