Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure default timeout of 15 minutes for all testable and lifecycle methods #2550

Merged
merged 1 commit into from
Oct 31, 2021

Commits on Oct 30, 2021

  1. Configure default timeout of 15 minutes for all testable and lifecycl…

    …e methods
    
    This helps to identify what tests cause builds to fail and it will more quickly end builds.
    
    For instance the WebClientFactoryImplTest currently often hangs on my local builds.
    With this configuration in place it is easy to see and it will timeout after 15 minutes:
    
    [ERROR] Tests run: 5, Failures: 0, Errors: 1, Skipped: 4, Time elapsed: 900.207 s <<< FAILURE! - in org.openhab.core.io.net.http.internal.WebClientFactoryImplTest
    [ERROR] org.openhab.core.io.net.http.internal.WebClientFactoryImplTest.testGetClients  Time elapsed: 900.194 s  <<< ERROR!
    java.util.concurrent.TimeoutException: tearDown() timed out after 15 minutes
    
    See: https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    wborn committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    fa6d3af View commit details
    Browse the repository at this point in the history