diff options
author | Robin Stocker <robin@nibor.org> | 2013-10-22 00:37:56 +0200 |
---|---|---|
committer | Robin Stocker <robin@nibor.org> | 2013-10-22 00:37:56 +0200 |
commit | 09711a4bb9f7fc07b8f8730f5bca3dbac16e909a (patch) | |
tree | 5173f116885c22043dd9a876d7561d5a3462046c /org.eclipse.jgit.junit | |
parent | 057321731eb3495f56c762f344d584192bef0f98 (diff) | |
download | jgit-09711a4bb9f7fc07b8f8730f5bca3dbac16e909a.tar.gz jgit-09711a4bb9f7fc07b8f8730f5bca3dbac16e909a.zip |
Make sure SystemReader is reset after test is run
Otherwise the MockSystemReader from the test setup is active for other
tests.
Change-Id: I7caf693bd692d06936e29efd4dc4aabb48c1c39b
Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java index 7c53e8d1b2..053751f8ab 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java @@ -170,6 +170,8 @@ public abstract class LocalDiskRepositoryTestCase { recursiveDelete(tmp, false, true); if (tmp != null && !tmp.exists()) CleanupThread.removed(tmp); + + SystemReader.setInstance(null); } /** Increment the {@link #author} and {@link #committer} times. */ |