You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jamesnetherton (via GitHub)" <gi...@apache.org> on 2025/04/23 11:05:12 UTC

[I] Defer CamelRuntime start until after test setup is completed [camel-quarkus]

jamesnetherton opened a new issue, #7291:
URL: https://github.com/apache/camel-quarkus/issues/7291

   I think the way in which `CamelQuarkusTestSupport` currently works is a bit flawed.
   
   The CQ core starts the `CamelContext` well in advance of the test framework doing its setup work. Meaning that any adjustments to the `CamelContext` get made while it's in the `Started` state. This can lead to subtle issues reported in #7140 & also some issues I found trying to implement #7029.
   
   In test mode we should defer the runtime start until after the test framework setup work is completed.
   
   


-- 
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: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Defer CamelRuntime start until after test setup is completed [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #7291:
URL: https://github.com/apache/camel-quarkus/issues/7291#issuecomment-2894403786

   Not much we can do for this. Since the `CamelContext` is effectively a singleton.
   
   When it's started for one test, then obviously it's started for all of them.
   
   Fixing this would require a test class scoped `CamelContext` instance. Which currently isn't really possible without all tests having their own `QuarkusTestProfile` to force a 'clean' app restart.
   
   Probably what we really need is something akin to Spring `@DirtiesContext` https://github.com/quarkusio/quarkus/issues/26818.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Defer CamelRuntime start until after test setup is completed [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #7291: Defer CamelRuntime start until after test setup is completed
URL: https://github.com/apache/camel-quarkus/issues/7291


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org