Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(channels): add debug output to debounce turn assertion

Steven Enamakele9173272f53a
diff --git a/crates/openhuman-core/src/channels/tests/runtime_debounce.rs b/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
index b76e1ccbe2..927616e3c1 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
@@ -350,6 +350,7 @@ async fn a_command_arriving_inside_the_window_runs_as_its_own_turn_after_the_tex
// A slash command never merges: the buffered text and the command are two
// turns, and the text (received first) is dispatched before the command.
+ eprintln!("TURNS {} first={:?}", turns.count(), (turns.count() > 0).then(|| turns.user(0)));
assert_eq!(turns.count(), 2);
let first = turns.user(0);
let second = turns.user(1);