From db875c37dce8c4884647e34621ce8a95eafbf0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Or=C3=A7un=20=C3=87olak?= <90305879+orcunc@users.noreply.github.com> Date: Mon, 9 Oct 2023 14:42:02 +0300 Subject: [PATCH] Increse the timeout for assertTrueEventually [HZ-3404] (#25642) --- .../test/starter/hz3/Hazelcast3StarterTest.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hazelcast/src/test/java/com/hazelcast/test/starter/hz3/Hazelcast3StarterTest.java b/hazelcast/src/test/java/com/hazelcast/test/starter/hz3/Hazelcast3StarterTest.java index b93932fde341..77ee009d400b 100644 --- a/hazelcast/src/test/java/com/hazelcast/test/starter/hz3/Hazelcast3StarterTest.java +++ b/hazelcast/src/test/java/com/hazelcast/test/starter/hz3/Hazelcast3StarterTest.java @@ -65,14 +65,9 @@ public void testTopicMessageListenerPublish() { HazelcastInstance instance = Hazelcast3Starter.newHazelcastInstance(HZ3_MEMBER_CONFIG); ITopic topic = instance.getTopic("my-topic"); List 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(); }