Fix project leaking in tests
The project was leaking via MockApplication -> LowMemoryWatcherManager -> List<Project> It happened due to unregistered disposable provided to the MockApplication
This commit is contained in:
committed by
teamcityserver
parent
f19dfd9d2a
commit
77fcb12af8
+1
@@ -76,6 +76,7 @@ abstract class AbstractLowLevelApiTest : TestWithDisposable() {
|
||||
protected fun runTest(path: String) {
|
||||
testDataPath = Paths.get(path)
|
||||
val testConfiguration = testConfiguration(path, configure)
|
||||
Disposer.register(disposable, testConfiguration.rootDisposable)
|
||||
val testServices = testConfiguration.testServices
|
||||
val moduleStructure = testConfiguration.moduleStructureExtractor.splitTestDataByModules(
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user