lst: fix LineStatusTrackerManagerTest

Ensure that we dispatch `FileStatusManager.fileStatusesChanged` events before putting AfterUpdateRunnable request.
Otherwise, we might wait till the end of update, but accidentally trigger another one,
and `releaseUnneededTrackers` would do nothing.

Tests were blinking after 0ec7ee057a.
This commit is contained in:
Aleksey Pivovarov
2018-07-20 19:43:59 +03:00
parent f42e95db7b
commit b837540690
@@ -1025,6 +1025,10 @@ class LineStatusTrackerManager(
@TestOnly
fun waitUntilBaseContentsLoaded() {
if (ApplicationManager.getApplication().isDispatchThread) {
UIUtil.dispatchAllInvocationEvents()
}
val semaphore = Semaphore()
semaphore.down()