mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SVN: fix tests: do not keep connection in pool for tests mode
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user