Skip to content

Commit 6678b3a

Browse files
committedMay 23, 2014
Fix unit tests and add note [FIXED JENKINS-9457] [FIXED JENKINS-19773] [FIXED JENKINS-20526]
1 parent 5447e3f commit 6678b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/test/java/hudson/plugins/build_timeout/impl/ElasticTimeOutStrategyTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ public void testPercentageWithOneBuild() throws Exception {
2525

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

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

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

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

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

3939
public void testPercentageWithNoBuilds() throws Exception {

0 commit comments

Comments
 (0)
Please sign in to comment.