title: Tests taking more time than specified timeout using maven surefire
body: <p>I have all the timeout properties set in my pom.xml.</p>
  
  <pre><code>    &lt;plugin&gt;
         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
         &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
         &lt;version&gt;3.0.0-M3&lt;/version&gt;
         &lt;configuration&gt;              
            &lt;forkCount&gt;${surefire.forkNumber}&lt;/forkCount&gt;
            &lt;reuseForks&gt;false&lt;/reuseForks&gt;
            &lt;argLine&gt;-Xmx2G -XX:MaxMetaspaceSize=2G &lt;/argLine&gt;
            &lt;parallel&gt;methods&lt;/parallel&gt;
            &lt;threadCount&gt;${surefire.threadCount}&lt;/threadCount&gt;
            &lt;forkedProcessTimeoutInSeconds&gt;40s&lt;/forkedProcessTimeoutInSeconds&gt;
            &lt;forkedProcessExitTimeoutInSeconds&gt;40s&lt;/forkedProcessExitTimeoutInSeconds&gt;
            &lt;parallelTestsTimeoutInSeconds&gt;30s&lt;/parallelTestsTimeoutInSeconds&gt;
            &lt;parallelTestsTimeoutForcedInSeconds&gt;30s&lt;/parallelTestsTimeoutForcedInSeconds&gt; 
         &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>But I still see a few tests are taking more time than 40s (one test is even taking 17 min). What could be the possible reason? How can I enforce 30s timeout with surefire?</p>