Here is the junit code, it might help.
https://junit.org/junit4/xref/org/junit/internal/runners/statements/FailOnTimeout.html
The timeout is set in the Builder object.
You may be suffering from a Windows process create time issue. I assume you
are running this on the Jenkins server itself and it has to restart then
spin up the agent and connect to it. What is the error seen after you added
WithTimeout annotation?

On Fri, Jun 4, 2021 at 11:05 AM Bryan Stopp <[email protected]> wrote:

> Follow-up:  I found a way to extend the timeout for a test (WithTimout
> annotation), and bumped it up to 5 minutes. However, it does not solve the
> issues.
>
> Any help is much appreciated.
>
> -Stopp
>
> On Friday, June 4, 2021 at 11:24:48 AM UTC-5 Bryan Stopp wrote:
>
>> Hello all,
>>
>> Looking for some advice/help here. I've added a bunch of tests for my
>> plugin, but it seems that on Windows I get random failures of my restart
>> test cases. It doesn't happen during the Linux runs.
>>
>> Essentially I'm validating that my custom steps come up clean from a
>> reboot and then handle expected interactions correctly, and continue the
>> pipeline.
>>
>> The failures are intermittent, and randomly occur on different reboot
>> tests. I have a number of them in the plugin. At first i was getting errors
>> because I wasn't waiting for the test Jenkins to finish its boot. But now
>> that i protected against that, I'm getting timeouts.
>>
>> Two of the latest runs which show the randomness of the failures are here
>> <https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fadobe-cloud-manager-plugin/detail/PR-4/10/tests>
>> and here
>> <https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fadobe-cloud-manager-plugin/detail/PR-4/11/tests>
>> .
>>
>> Does anyone have any idea what could cause this, and is there a way for
>> me to adjust my tests to account for the time? Is this something that i can
>> adjust on a Jenkins CI build, or will it be ignored?
>>
>> Thanks in advance everyone!
>>
>> -Bryan
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/3824aa9f-d1df-4f82-9521-912fd70ae318n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/3824aa9f-d1df-4f82-9521-912fd70ae318n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAO1vCWETMFO45E0yScA%3D_mtAuGoVLRfAaCe7rfAJn7Kg-Gxkdg%40mail.gmail.com.

Reply via email to