Use InMemoryRepository in acceptance tests

We can no longer use CloneCommand, which always produces an on-disk
repository. Instead "clone" by setting up a remote and checking out a
detached head.

Change-Id: I94bc3d9b231526bb5740c530702f5c918c61cc03
This commit is contained in:
Dave Borowitz
2015-03-18 07:45:40 -07:00
parent d901bee35a
commit 3e027d60b8
13 changed files with 64 additions and 47 deletions

View File

@@ -267,7 +267,8 @@ public class ChangeEditIT extends AbstractDaemonTest {
@Test
@TestProjectInput(createEmptyCommit = false)
public void updateRootCommitMessage() throws Exception {
setRepo(cloneProject(sshSession.getUrl() + "/" + project));
// Re-clone empty repo; TestRepository doesn't let us reset to unborn head.
testRepo = cloneProject(project, sshSession);
changeId = newChange(admin.getIdent());
change = getChange(changeId);