AwaitSent

class AwaitSent(val description: String, val matches: (Any) -> Boolean) : DummyLiveStep

Pauses receive() until the code under test sends a message that matches accepts, such as a tool response. Each sent message is checked once, in send order, so a message one wait skips cannot satisfy a later one. Fails the test if nothing matches within 5 seconds (test time under runTest); closing the connection ends the wait without failing.

Constructors

Link copied to clipboard
constructor(description: String, matches: (Any) -> Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
val matches: (Any) -> Boolean