Files
openide/platform/remoteDev-util/src/com/intellij/remoteDev/tests/DistributedTestBridge.kt
Anastasia Katsman ced900d7e0 [rdct-tests]: GTW-6006 coroutine based test framework
- No additional wait in case of failure the first time. It is always better to set correct timeouts from the start.
- Add ActionName utils

GitOrigin-RevId: d27f24efdaf82e4ea47b951555c80dcd06228221
2023-09-01 10:47:27 +00:00

24 lines
735 B
Kotlin

package com.intellij.remoteDev.tests
import com.intellij.openapi.components.service
import org.jetbrains.annotations.ApiStatus
/**
* Connects different IDE agents during test session
*/
@ApiStatus.Internal
interface DistributedTestBridge {
companion object {
fun getInstance() : DistributedTestBridge = service()
}
/**
* This method sends calls into every connected protocol to ensure all events which
* this process sent into protocol were successfully received on the other side
* Use this method after a test to preserve correct order of messages
* in protocol `IDE` <-> `IDE` because test framework works via
* different protocol `IDE` <-> `Test Process`
*/
suspend fun syncProtocolEvents()
}