ScriptClassRootsUpdater: run synchronously in unit test mode

This commit is contained in:
Sergey Rostov
2020-05-07 00:57:44 +03:00
parent c6be0a8213
commit 4e07e4c8fe
@@ -94,7 +94,7 @@ class ScriptClassRootsUpdater(
if (!invalidated) return
invalidated = false
if (syncUpdateRequired) {
if (syncUpdateRequired || ApplicationManager.getApplication().isUnitTestMode) {
syncUpdateRequired = false
updateSynchronously()
} else {