Skip to content

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

test(mcp): adapt the e2e probe assertions to ProbeOutcome\n\n`Connections::probe_alive` returns `ProbeOutcome` rather than `bool` as of\nthe bump in the previous commit, so `mcp_registry_e2e` stopped compiling —\nthree `assert!` sites took the return value directly. `cargo check --lib\n--tests` fails on the bump alone with three E0308s; this is what makes the\npin land green, not separable work.\n\nAdapted with `ProbeOutcome::is_alive()`, which preserves each assertion and\nits message exactly. Deliberately minimal: the disconnected-server case now\nreturns `ProbeOutcome::Missing` and could assert that specifically, which\nwould be a stronger test than `!is_alive()` — but tightening assertions is\nnot what a bump PR should carry, so it is left as a follow-up.\n\nWorth recording why this was not caught earlier: the review of tinymcp#5\nchecked `src/` and `app/src-tauri/src/` for callers of `probe_alive`, found\nnone, and concluded the signature change was safe for the host. It did not\ncheck `tests/`. The e2e suite is a consumer of the vendored API like any\nother.\n

M3gA-Minda941ead3577c
diff --git a/tests/mcp_registry_e2e.rs b/tests/mcp_registry_e2e.rs
index a28fbe2a70..3ea40b9eb2 100644
--- a/tests/mcp_registry_e2e.rs
+++ b/tests/mcp_registry_e2e.rs
@@ -553,7 +553,8 @@ async fn probe_alive_reflects_transport_liveness() {
h.dynamic()
.connections()
.probe_alive(&server.server_id, std::time::Duration::from_secs(8))
- .await,
+ .await
+ .is_alive(),
"a live stub answers the tools/list probe"
);
@@ -571,7 +572,8 @@ async fn probe_alive_reflects_transport_liveness() {
!h.dynamic()
.connections()
.probe_alive(&server.server_id, std::time::Duration::from_secs(8))
- .await,
+ .await
+ .is_alive(),
"a disconnected server is not alive"
);
}
@@ -615,12 +617,12 @@ async fn supervisor_reconnects_a_dropped_server() {
.await,
"supervisor reconnects a dropped-but-installed server"
);
- assert!(
- h.dynamic()
- .connections()
- .probe_alive(&server.server_id, std::time::Duration::from_secs(8))
- .await
- );
+ assert!(h
+ .dynamic()
+ .connections()
+ .probe_alive(&server.server_id, std::time::Duration::from_secs(8))
+ .await
+ .is_alive());
h.dynamic()
.connections()