budaidev commented on code in PR #5164:
URL: https://github.com/apache/fineract/pull/5164#discussion_r2559149443
##########
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/stepdef/hook/MessagingHook.java:
##########
@@ -18,16 +18,50 @@
*/
package org.apache.fineract.test.stepdef.hook;
+import static org.awaitility.Awaitility.await;
+
import io.cucumber.java.Before;
+import java.time.Duration;
+import java.util.concurrent.atomic.AtomicBoolean;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.fineract.test.messaging.config.EventProperties;
import org.apache.fineract.test.messaging.store.EventStore;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.jms.config.JmsListenerEndpointRegistry;
+import org.springframework.jms.listener.DefaultMessageListenerContainer;
+@Slf4j
public class MessagingHook {
@Autowired
private EventStore eventStore;
- @Before
+ @Autowired(required = false)
+ private JmsListenerEndpointRegistry registry;
+
+ @Autowired(required = false)
+ private EventProperties eventProperties;
+
+ private static final AtomicBoolean jmsStartupDelayCompleted = new
AtomicBoolean(false);
+ private static final Duration STARTUP_TIMEOUT = Duration.ofSeconds(20);
+
+ @Before(order = 0)
+ public void waitForJmsListenerStartup() {
Review Comment:
that was again an attempted fix for the timing issue which only apply on the
CI run.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]