Skip to content
Permalink
Browse files
JENKINS-15174 Timeout option not retrieved correctly
  • Loading branch information
Zoran Regvart committed Sep 15, 2012
1 parent 40e566d commit 253a5bde656ee1ea883cdfb9410a37307a444381
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
@@ -53,6 +53,8 @@

public class XvfbBuildWrapper extends BuildWrapper {

private static final int MILLIS_IN_SECOND = 1000;

@Extension
public static class XvfbBuildWrapperDescriptor extends BuildWrapperDescriptor {

@@ -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;
}

@@ -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;
}

0 comments on commit 253a5bd

Please sign in to comment.