Skip to content

Commit

Permalink
[JENKINS-18678] Reproduced problem in test.
Browse files Browse the repository at this point in the history
(cherry picked from commit 1943801)
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 65502e1 commit 9c7b5a1
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 @@ -373,6 +373,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 9c7b5a1

Please sign in to comment.