summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJens Baumgart2010-09-13 12:40:44 (EDT)
committer Matthias Sohn2010-09-18 17:29:28 (EDT)
commit6c8423aee1978e6909b2179d5e5a08794325cd5a (patch)
tree6ddec65828960791014aa1f642bf79d36653dd28
parentc5853d29295f49d077e77329e63e9d421edea754 (diff)
downloadegit-6c8423aee1978e6909b2179d5e5a08794325cd5a.zip
egit-6c8423aee1978e6909b2179d5e5a08794325cd5a.tar.gz
egit-6c8423aee1978e6909b2179d5e5a08794325cd5a.tar.bz2
Cleanup RepositoryCache after tests executionrefs/changes/89/1589/5
RepositoryCache is now cleaned up on tear down of LocalRepositoryTestCase. This fixes errors on test execution. Change-Id: I05060228bb8e2a8ec64e2841243dc9e2ed0620a4 Signed-off-by: Jens Baumgart <jens.baumgart@sap.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index aaae4f2..65df972 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -21,6 +21,7 @@ import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Path;
+import org.eclipse.egit.core.Activator;
import org.eclipse.egit.core.op.CloneOperation;
import org.eclipse.egit.core.op.CommitOperation;
import org.eclipse.egit.core.op.ConnectProviderOperation;
@@ -135,6 +136,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
// cleanup
deleteAllProjects();
deleteRecursive(testDirectory);
+ Activator.getDefault().getRepositoryCache().clear();
}
protected static void deleteRecursive(File dirOrFile) {