Skip to content

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

test(embed): surface the error when skipped compaction fails

Steven Enamakel4462f6e343a1
diff --git a/crates/openhuman-embed/tests/compact_thread.rs b/crates/openhuman-embed/tests/compact_thread.rs
index 0ac117039c..0770ce700c 100644
--- a/crates/openhuman-embed/tests/compact_thread.rs
+++ b/crates/openhuman-embed/tests/compact_thread.rs
@@ -186,7 +186,10 @@ fn compact_thread_seals_the_head_and_the_next_turn_resends_the_summary() {
},
)
.await
- .expect("a skipped compaction succeeds");
+ .unwrap_or_else(|error| {
+ eprintln!("skipped compaction failed: {error:?}");
+ panic!("a skipped compaction succeeds")
+ });
let CompactOutcome::Skipped { tokens } = skipped else {
panic!("expected Skipped, got {skipped:?}");
};