Croway commented on PR #30226:
URL: https://github.com/apache/camel/pull/30226#issuecomment-6948194327

   Confirmed: with the component client set first, the `mongodb:beanClient` 
endpoint got the component client (an `assertSame(beanClient, ...)` failed 
there), so the bean case never ran. Fixed in 51b7c2dc7ca2: the `bean` route is 
added before the component gets its client, and the test checks that each of 
the three endpoints uses its own client (registry bean, `mongoConnection` 
option, component) before it checks that none is closed. With a variant of the 
endpoint that also closes a registry bean, the old test stays green and the new 
one fails. The same commit adds the one-line comment from the other review at 
`createdMongoConnection = mongoClient`: `doStart()` and 
`initializeConnection()` both get their client there.
   
   _Claude Code on behalf of Federico Mariani_
   


-- 
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]

Reply via email to