Skip to content

Commit

Permalink
Increse the timeout for assertTrueEventually [HZ-3404] (hazelcast#25642)
Browse files Browse the repository at this point in the history
  • Loading branch information
orcunc authored Oct 9, 2023
1 parent 2688200 commit db875c3
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,9 @@ public void testTopicMessageListenerPublish() {
HazelcastInstance instance = Hazelcast3Starter.newHazelcastInstance(HZ3_MEMBER_CONFIG);
ITopic<String> topic = instance.getTopic("my-topic");
List<String> result = new ArrayList<>();
topic.addMessageListener(message -> {
result.add(message.getMessageObject());
});
topic.addMessageListener(message -> result.add(message.getMessageObject()));
topic.publish("value");
assertTrueEventually(
() -> assertThat(result).contains("value"),
5
);
assertTrueEventually(() -> assertThat(result).contains("value"));

instance.shutdown();
}
Expand Down

0 comments on commit db875c3

Please sign in to comment.