reduce life span to avoid memleaks

This commit is contained in:
Alexey Kudravtsev
2017-03-15 13:36:22 +03:00
parent a972f38443
commit b0cea11a74
@@ -114,7 +114,7 @@ public abstract class ExternalSystemTestCase extends UsefulTestCase {
List<String> allowedRoots = new ArrayList<>();
collectAllowedRoots(allowedRoots);
if (!allowedRoots.isEmpty()) {
VfsRootAccess.allowRootAccess(getTestRootDisposable(), ArrayUtil.toStringArray(allowedRoots));
VfsRootAccess.allowRootAccess(myTestFixture.getTestRootDisposable(), ArrayUtil.toStringArray(allowedRoots));
}
CompilerTestUtil.enableExternalCompiler();