Skip to content

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

test(json_rpc_e2e): unwrap workspace dir and add assertion message

Steven Enamakeldf2d9a90e08b
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index e9bb800b09..ed3fc5074f 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -2849,7 +2849,11 @@ async fn json_rpc_cron_manual_worker_survives_caller_cancel_on_published_tinyflo
)
.await
.expect("initialize the isolated core context for the native host scenario");
- assert_eq!(default_context.workspace_dir(), workspace);
+ assert_eq!(
+ default_context.workspace_dir().unwrap(),
+ workspace,
+ "the RPC host and pre-seeded migration rows share the same workspace"
+ );
let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
let rpc_base = format!("http://{rpc_addr}");
let store_session = post_json_rpc(