Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dao-jun authored and gaoran10 committed Apr 21, 2023
1 parent 8d5da32 commit 2f56e1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void produceAndConsume(Producer<byte[]> producer,
producer.newMessage().value("test".getBytes()).send();
}
for (int i = 0; i < messageCnt; i++) {
Message<byte[]> message = consumer.receive(1000, TimeUnit.SECONDS);
Message<byte[]> message = consumer.receive(1000, TimeUnit.MILLISECONDS);
consumer.acknowledge(message);
Assert.assertNotNull(message);
}
Expand Down

0 comments on commit 2f56e1b

Please sign in to comment.