SVN: fix tests: do not keep connection in pool for tests mode

This commit is contained in:
irengrig
2012-03-05 16:50:35 +04:00
parent 6d1694ca83
commit 6491bf81d2
2 changed files with 2 additions and 2 deletions
@@ -579,7 +579,7 @@ public class SvnVcs extends AbstractVcs<CommittedChangeList> {
final String property = System.getProperty(KEEP_CONNECTIONS_KEY);
final boolean keep;
if (StringUtil.isEmptyOrSpaces(property)) {
keep = true; // default
keep = ! ApplicationManager.getApplication().isUnitTestMode(); // default
} else {
keep = Boolean.getBoolean(KEEP_CONNECTIONS_KEY);
}
@@ -48,7 +48,7 @@ public abstract class SvnTestCase extends AbstractVcsTestCase {
@Before
public void setUp() throws Exception {
System.setProperty("svnkit.wc.17", "false");
//System.setProperty("svnkit.wc.17", "false");
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
@Override
public void run() {