Skip to content

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

test(web_chat): swap panic messages between checkout assertions

Steven Enamakel153cde830491
diff --git a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
index d0b65dada1..67c82765c8 100644
--- a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
@@ -143,7 +143,7 @@ async fn checkout_cold_boots_from_the_thread_transcript_and_checkin_keeps_it_war
CheckoutPolicy::AdoptCached,
)
.await
- .unwrap_or_else(|error| panic!("first checkout failed: {error}"));
+ .unwrap();
// Checkout binds the thread's durable session identity; the history loads
// when the session resumes, which every turn does for itself. The
// conversation the transcript holds must come back either way.
@@ -376,7 +376,7 @@ async fn a_thread_binds_one_stable_session_across_cold_boots() {
CheckoutPolicy::Exact,
)
.await
- .unwrap();
+ .unwrap_or_else(|error| panic!("first checkout failed: {error}"));
// Nothing is checked back in, so the next checkout is a genuine cold boot.
let second = checkout_session_agent(
&DispatchCtx::ambient(),