[
https://issues.apache.org/jira/browse/CAMEL-17494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17476445#comment-17476445
]
Freeman Yue Fang commented on CAMEL-17494:
------------------------------------------
The cause behind this is same, ServiceRegistry service(ConsulServiceRegistry
and ZooKeeperServiceRegistry) used in test never get chance to start. If I do
change like
{code}
final CamelContext camelContext = context.getBean(CamelContext.class);
- final ServiceRegistry serviceRegistry =
camelContext.hasService(ServiceRegistry.class);
+ final ServiceRegistry serviceRegistry =
context.getBean(ServiceRegistry.class);
+
assertThat(serviceRegistry).isNotNull();
-
+ serviceRegistry.start();
{code}
tests passed
> camel-spring-boot: ServiceRegistry not started
> ----------------------------------------------
>
> Key: CAMEL-17494
> URL: https://issues.apache.org/jira/browse/CAMEL-17494
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot-starters
> Reporter: Freeman Yue Fang
> Priority: Major
>
> we can this test failure like this
> {code}
> Expecting actual not to be null
> {code}
> Three tests affected
> ZooKeeperClusterServiceTest
> ZooKeeperServiceRegistryTest
> ConsulServiceRegistryIT
--
This message was sent by Atlassian Jira
(v8.20.1#820001)