mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[perf_tests]Cancel serverJob after each test, not only after all tests
GitOrigin-RevId: bddc72f5d6c48cde20d8c59a6542fb0f37a3323e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
148b86edb2
commit
e595ad799a
@@ -24,8 +24,6 @@ class SharedEventsFlow(
|
||||
private var serverJob: Job? = null
|
||||
|
||||
fun endServerProcess() {
|
||||
runBlocking { serverJob?.cancelAndJoin() }
|
||||
serverJob = null
|
||||
client.endServerProcess()
|
||||
}
|
||||
|
||||
@@ -84,6 +82,8 @@ class SharedEventsFlow(
|
||||
}
|
||||
|
||||
override fun unsubscribeAll() {
|
||||
runBlocking { serverJob?.cancelAndJoin() }
|
||||
serverJob = null
|
||||
processedEvents.clear()
|
||||
client.clear()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user