Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
3.18.0
-
None
-
Unknown
Description
When debugging a Camel test, it would be convenient to be able to disable timeouts.
Similar feature specific to JUnit test https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts-mode
I spotted NotifyBuilder which is used in test that has timeouts. Need to lookup if there are other ways to have timeouts in test
I think there would 2 main categories:
- when Java debugging is used. In this case, maybe can reuse same heurisitic than for JUnit
- when Camel debugging. In this case, the heuristic to detect the debug must be different.
maybe a configuration parameter camel.test.execution.timeout.mode can be provided. With potential values enabled, disabled, disabled_on_debug.
The default mode for JUnit is enabled. So I guess we should use it too. Maybe worth defaulting to disabled_on_debug when camel-debug is on classpath.