diff --git a/core/src/test/java/hudson/FilePathTest.java b/core/src/test/java/hudson/FilePathTest.java index e4d63df2c3..aa6723f609 100644 --- a/core/src/test/java/hudson/FilePathTest.java +++ b/core/src/test/java/hudson/FilePathTest.java @@ -556,7 +556,7 @@ public class FilePathTest { } @Issue("JENKINS-5253") - public void testValidateCaseSensitivity() throws Exception { + @Test public void testValidateCaseSensitivity() throws Exception { File tmp = Util.createTempDir(); try { FilePath d = new FilePath(channels.french, tmp.getPath()); diff --git a/test/src/test/java/hudson/model/SimpleJobTest.java b/test/src/test/java/hudson/model/SimpleJobTest.java index 108eb9fe9d..679ca797b2 100644 --- a/test/src/test/java/hudson/model/SimpleJobTest.java +++ b/test/src/test/java/hudson/model/SimpleJobTest.java @@ -55,6 +55,7 @@ public class SimpleJobTest { assertEquals(42, project.getEstimatedDuration()); } + @Test public void testGetEstimatedDurationWithFailedRun() throws IOException { final SortedMap runs = new TreeMap<>(); @@ -64,7 +65,7 @@ public class SimpleJobTest { TestBuild lastBuild = new TestBuild(project, Result.FAILURE, 42, null); runs.put(1, lastBuild); - assertEquals(-1, project.getEstimatedDuration()); + assertEquals(42, project.getEstimatedDuration()); } @Test