Document synchronous guest test isolation
CI / checks (pull_request) Successful in 1m25s
Agents / bot (pull_request) Failing after 9m6s

This commit is contained in:
Danny Kim
2026-09-30 19:39:46 +09:00
parent a3175ded3a
commit a12e4d03f7
+4
View File
@@ -97,6 +97,8 @@ async fn a_listing_reconnects_after_the_server_expires_the_control_session()
}) })
.await? .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 { let client = tokio::task::spawn_blocking(move || -> TestResult {
guest(Ftp::open("ftp".into(), config(port)))?; guest(Ftp::open("ftp".into(), config(port)))?;
let first = guest(Ftp::list(Locator::Path("/".into()), None, 10))?; 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? .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 { let client = tokio::task::spawn_blocking(move || -> TestResult {
guest(Ftp::open("ftp".into(), config(port)))?; guest(Ftp::open("ftp".into(), config(port)))?;
wait_expired.blocking_recv()?; wait_expired.blocking_recv()?;