[rdct-tests]: rename shutdown -> closeProjectAndExitApp && shutdown -> exitApp

- comment about the fact it also closes the project

GitOrigin-RevId: c6cd02e81403feef3d9422fca27d3bf283ed288c
This commit is contained in:
Anastasia Katsman
2024-01-03 00:09:29 +00:00
committed by intellij-monorepo-bot
parent 9d2c0d7e81
commit b7fea7d2ed
2 changed files with 6 additions and 4 deletions
@@ -211,10 +211,12 @@ open class DistributedTestHost(coroutineScope: CoroutineScope) {
true
}
}
session.shutdown.adviseOn(lifetime, Dispatchers.Default.asRdScheduler) {
/**
* Includes closing the project
*/
session.exitApp.adviseOn(lifetime, Dispatchers.Default.asRdScheduler) {
lifetime.launch(Dispatchers.EDT + ModalityState.any().asContextElement() + NonCancellable) {
LOG.info("Shutting down the application...")
LOG.info("Exiting the application...")
app.exit(true, true, false)
}
}
@@ -58,7 +58,7 @@ object DistributedTestModel : Ext(TestRoot) {
field("debugCategories", immutableList(string))
property("ready", bool.nullable)
signal("sendException", RdTestSessionException).async
signal("shutdown", void).async
signal("exitApp", void).async
signal("showNotification", string)
call("closeProject", void, bool).async
call("closeProjectIfOpened", void, bool).async