diff options
author | Jens Baumgart | 2010-09-13 16:40:44 +0000 |
---|---|---|
committer | Matthias Sohn | 2010-09-18 21:29:28 +0000 |
commit | 6c8423aee1978e6909b2179d5e5a08794325cd5a (patch) | |
tree | 6ddec65828960791014aa1f642bf79d36653dd28 | |
parent | c5853d29295f49d077e77329e63e9d421edea754 (diff) | |
download | egit-6c8423aee1978e6909b2179d5e5a08794325cd5a.tar.gz egit-6c8423aee1978e6909b2179d5e5a08794325cd5a.tar.xz egit-6c8423aee1978e6909b2179d5e5a08794325cd5a.zip |
Cleanup RepositoryCache after tests execution
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.java | 2 |
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 aaae4f2632..65df972a39 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) { |