Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions crates/dim-agent-capabilities/tests/branch_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8029,15 +8029,13 @@ async fn an_end_from_outside_a_tool_line_wakes_main_with_a_notice() {

/// Starts Wait's `wait` in a turn on `main` and answers its call id and
/// sequence once the call is written and no result has landed, so a notice
/// written after this reaches a wait that is still waiting.
/// written after this reaches a wait that is still waiting. The wait uses its
/// default timeout: these tests end it from a notice before any timeout, and a
/// short timeout only races the runner.
async fn start_wait(session: &Session) -> (String, u64) {
soon(session.submit(
r#"tool:wait {"timeoutMs":3000}"#.into(),
InputMode::Queue,
"main",
))
.await
.unwrap();
soon(session.submit(r#"tool:wait {}"#.into(), InputMode::Queue, "main"))
.await
.unwrap();
let events = until_events(session, "main", |events| {
events.iter().any(
|event| matches!(&event.kind, EventKind::ToolUse(data) if data.call.name == "wait"),
Expand Down