camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minh Tran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10616) shutdown timeout override not working in unit tests
Date Thu, 05 Jan 2017 10:21:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15800995#comment-15800995
] 

Minh Tran commented on CAMEL-10616:
-----------------------------------

And there are no assertions of mocks being done in that unit test so I don't believe the mock
timeout is related here.

> shutdown timeout override not working in unit tests
> ---------------------------------------------------
>
>                 Key: CAMEL-10616
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10616
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 2.18.1
>            Reporter: Minh Tran
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.18.2, 2.19.0
>
>
> 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
> {noformat}
> org.apache.camel.spring.boot.CamelAutoConfiguration - Using custom ShutdownStrategy:
org.apache.camel.impl.DefaultShutdownStrategy@5b8b9b2d
> {noformat}
> This is preventing me from doing any debugging during unit tests as it will always end
the jvm before I can inspect anything.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message