Skip to content

Commit

Permalink
Fix unit tests and add note [FIXED JENKINS-9457] [FIXED JENKINS-19773…
Browse files Browse the repository at this point in the history
…] [FIXED JENKINS-20526]
  • Loading branch information
stephenc committed May 23, 2014
1 parent 5447e3f commit 6678b3a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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 {
Expand Down

0 comments on commit 6678b3a

Please sign in to comment.