Skip to content

Commit

Permalink
JENKINS-15174 Timeout option not retrieved correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoran Regvart committed Sep 15, 2012
1 parent 40e566d commit 253a5bd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -53,6 +53,8 @@

public class XvfbBuildWrapper extends BuildWrapper {

private static final int MILLIS_IN_SECOND = 1000;

@Extension
public static class XvfbBuildWrapperDescriptor extends BuildWrapperDescriptor {

Expand Down Expand Up @@ -136,7 +138,7 @@ public XvfbBuildWrapper(final String installationName, final Integer displayName
}

this.debug = Boolean.TRUE.equals(debug);
this.timeout = timeout * 1000;
this.timeout = timeout;
this.additionalOptions = additionalOptions;
}

Expand Down Expand Up @@ -196,7 +198,7 @@ public Launcher decorateLauncher(@SuppressWarnings("rawtypes") final AbstractBui

process = procStarter.start();

Thread.sleep(timeout);
Thread.sleep(timeout * MILLIS_IN_SECOND);

return launcher;
}
Expand Down

0 comments on commit 253a5bd

Please sign in to comment.