Hi,

We want to increase test case timeout value for Jenkins test harness. 
We tried to use both @WithTimeout annotation and JenkinsRule timeout 
variable to increase the timeout but both are not working. In both the 
cases test is getting timeout after 180 seconds.


public class TestClass {

    @Rule
    public JenkinsRule jenkinsRule = new JenkinsRule();

    @WithTimeout(1500)
    @Test
     public void test() throws Exception 
    {
      //Lines of code which are taking time
     }

   }


This code is not taking effect at all. 

Log Message:

*WARNING: Test timed out (after 180 seconds).*


OR

public class TestClass {

    @Rule
    public JenkinsRule jenkinsRule = new JenkinsRule();

    public TestClass ()
    {
        jenkinsRule.timeout=1500;
    }    @Test
    public void test() throws InterruptedException {
        Thread.sleep(181_000);
    }
}


In this case value of seconds is just changing in log message only. Test is 
still failing in 180 seconds.


Log Message:

*WARNING: Test timed out (after 1500 seconds).*


*Is there any other solution to increase test timeout??*





-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/7bbb6609-e5b0-453e-b477-2587c92f93fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to