Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10616

shutdown timeout override not working in unit tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.1
    • 2.18.2, 2.19.0
    • camel-spring-boot
    • None
    • Unknown

    Description

      In my main application, I can override the timeout by declaring my own ShutdownStrategy bean and setting the timeout property. However this seems to be ignored during unit tests and always uses 10s timeouts.

      The bean is certainly being picked up because I see the following logging

      org.apache.camel.spring.boot.CamelAutoConfiguration - Using custom ShutdownStrategy: org.apache.camel.impl.DefaultShutdownStrategy@5b8b9b2d
      

      This is preventing me from doing any debugging during unit tests as it will always end the jvm before I can inspect anything.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mtran Minh Tran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: