소스 검색

Fix unit tests for windows by explicitly closing test repos

Change-Id: If5f67d739f744f19b45e6f5c7597a213fd5bf025
tags/v3.6.0.201412230720-r
Christian Halstrick 9 년 전
부모
커밋
d49c9ee848
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java

+ 3
- 0
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java 파일 보기

@@ -146,6 +146,7 @@ public class CloneCommandTest extends RepositoryTestCase {
command.setGitDir(new File(directory, ".git"));
command.setURI(fileUri());
Git git2 = command.call();
addRepoToClose(git2.getRepository());
assertEquals(directory, git2.getRepository().getWorkTree());
assertEquals(new File(directory, ".git"), git2.getRepository()
.getDirectory());
@@ -161,6 +162,7 @@ public class CloneCommandTest extends RepositoryTestCase {
command.setGitDir(gDir);
command.setURI(fileUri());
Git git2 = command.call();
addRepoToClose(git2.getRepository());
assertEquals(directory, git2.getRepository().getWorkTree());
assertEquals(gDir, git2.getRepository()
.getDirectory());
@@ -177,6 +179,7 @@ public class CloneCommandTest extends RepositoryTestCase {
command.setGitDir(gDir);
command.setURI(fileUri());
Git git2 = command.call();
addRepoToClose(git2.getRepository());
try {
assertNull(null, git2.getRepository().getWorkTree());
fail("Expected NoWorkTreeException");

Loading…
취소
저장