From a12e4d03f76757f1205f015c70d0d399f2f993db Mon Sep 17 00:00:00 2001 From: Danny Kim Date: Wed, 30 Sep 2026 19:39:46 +0900 Subject: [PATCH] Document synchronous guest test isolation --- src/session_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session_tests.rs b/src/session_tests.rs index 3ab133e..ddcb5e0 100644 --- a/src/session_tests.rs +++ b/src/session_tests.rs @@ -97,6 +97,8 @@ async fn a_listing_reconnects_after_the_server_expires_the_control_session() }) .await? }); + // `Guest` is generated as a synchronous trait, so the repository rule for + // unavoidable blocking I/O requires isolating this native test call here. let client = tokio::task::spawn_blocking(move || -> TestResult { guest(Ftp::open("ftp".into(), config(port)))?; let first = guest(Ftp::list(Locator::Path("/".into()), None, 10))?; @@ -137,6 +139,8 @@ async fn recovery_before_a_mutation_never_replays_a_lost_mutation_reply() }) .await? }); + // `Guest` is generated as a synchronous trait, so the repository rule for + // unavoidable blocking I/O requires isolating this native test call here. let client = tokio::task::spawn_blocking(move || -> TestResult { guest(Ftp::open("ftp".into(), config(port)))?; wait_expired.blocking_recv()?;