Skip to content

Commit

Permalink
[JENKINS-18678] Reproduced problem in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Dec 23, 2013
1 parent 7b83852 commit 1943801
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/test/groovy/hudson/model/AbstractProjectTest.groovy
Expand Up @@ -375,6 +375,16 @@ public class AbstractProjectTest extends HudsonTestCase {
assert !b.rootDir.isDirectory();
}

@Bug(18678)
public void testRenameJobLostBuilds() throws Exception {
def p = createFreeStyleProject("initial");
assertBuildStatusSuccess(p.scheduleBuild2(0));
assertEquals(1, p.getBuilds().size());
p.renameTo("edited");
p._getRuns().purgeCache();
assertEquals(1, p.getBuilds().size());
}

@Bug(17575)
public void testDeleteRedirect() {
createFreeStyleProject("j1");
Expand Down

0 comments on commit 1943801

Please sign in to comment.