Skip to content
Permalink
Browse files

Fix unit tests and add note [FIXED JENKINS-9457] [FIXED JENKINS-19773…

…] [FIXED JENKINS-20526]
  • Loading branch information
stephenc committed May 23, 2014
1 parent 5447e3f commit 6678b3ac3aafcc003c90b61d9d67f6b05738d0e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/java/hudson/plugins/build_timeout/impl/ElasticTimeOutStrategyTest.java
@@ -25,15 +25,15 @@ public void testPercentageWithOneBuild() throws Exception {

Build b = new Build(new Build(60 * MINUTES, SUCCESS));

assertEquals("Timeout should be 200% of 60", 120 * MINUTES, strategy.getTimeOut(b));
assertEquals("Timeout should be 200% of 60", 120 * MINUTES, strategy.getTimeOut(b,null));
}

public void testPercentageWithTwoBuilds() throws Exception {
BuildTimeOutStrategy strategy = new ElasticTimeOutStrategy(200, 60, 3);

Build b = new Build(new Build(20 * MINUTES, SUCCESS, new Build(40 * MINUTES, SUCCESS)));

assertEquals("Timeout should be 200% of the average of 20 and 40", 60 * MINUTES, strategy.getTimeOut(b));
assertEquals("Timeout should be 200% of the average of 20 and 40", 60 * MINUTES, strategy.getTimeOut(b,null));
}

public void testPercentageWithNoBuilds() throws Exception {

0 comments on commit 6678b3a

Please sign in to comment.
You can’t perform that action at this time.