Skip to content

Commit

Permalink
remove unused parameter (#37)
Browse files Browse the repository at this point in the history
* remove unused parameter

Signed-off-by: olivier lamy <olamy@apache.org>

* remove unused parameter

Signed-off-by: olivier lamy <olamy@apache.org>
  • Loading branch information
olamy authored Mar 9, 2021
1 parent a4815a4 commit dd40ed1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main/java/org/mortbay/jetty/maven/h2spec/Http2SpecMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ public class Http2SpecMojo extends AbstractMojo
@Parameter(property = "h2spec.skipNoDockerAvailable", defaultValue = "false")
private boolean skipNoDockerAvailable;

/**
* maximum timeout in seconds to run the tests
*/
@Parameter(property = "h2spec.testTimeout", defaultValue = "60")
private int testTimeout = 60;

/**
* maximum timeout in minutes to run all the tests
*/
Expand Down Expand Up @@ -453,8 +447,6 @@ public StartupStatus checkStartupState( DockerClient dockerClient, String contai

private static class MojoLogConsumer extends ToStringConsumer
{
private StringBuilder buffer = new StringBuilder();

private Log log;

public MojoLogConsumer( Log log )
Expand Down Expand Up @@ -489,8 +481,8 @@ protected void markedFailedTestAsSkipped( Path junitFile)
Arrays.stream( testsuite.getChildren() ).forEach( testcase -> {
if ( testcase.getChild( "error" ) != null )
{
int skipped = Integer.valueOf( testsuite.getAttribute( "skipped" ) );
int errors = Integer.valueOf( testsuite.getAttribute( "errors" ) );
int skipped = Integer.parseInt( testsuite.getAttribute( "skipped" ) );
int errors = Integer.parseInt( testsuite.getAttribute( "errors" ) );
testsuite.setAttribute( "skipped", Integer.toString( ++skipped ) );
testsuite.setAttribute( "errors", Integer.toString( --errors ) );
Xpp3Dom skippedDom = new Xpp3Dom( "skipped" );
Expand Down

0 comments on commit dd40ed1

Please sign in to comment.