Skip to content

Commit

Permalink
Merge pull request #1112 from jenkinsci/timeout
Browse files Browse the repository at this point in the history
Fix timeout problems in CI
  • Loading branch information
uhafner authored Nov 27, 2024
2 parents dce46ac + ce1d681 commit 124f268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
16 changes: 0 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,22 +292,6 @@

<build>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>11.1.0</version>
<configuration>
<nvdApiServerId>nvd.nist.gov</nvdApiServerId>
<format>JSON</format>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Tests the class {@link AntJavacParser}.
*/
class AntJavacParserTest extends AbstractParserTest {
private static final int ALLOWED_TIMEOUT_IN_SECONDS = 5;

AntJavacParserTest() {
super("ant-javac.txt");
}
Expand All @@ -37,7 +39,7 @@ void issue67521IgnoreJavaDocWarnings() {
*/
@Test
void issue55805() {
assertTimeoutPreemptively(Duration.ofSeconds(1), () -> parse("issue55805.txt"));
assertTimeoutPreemptively(Duration.ofSeconds(ALLOWED_TIMEOUT_IN_SECONDS), () -> parse("issue55805.txt"));
}

/**
Expand Down

0 comments on commit 124f268

Please sign in to comment.