fix: assert retained remote session close diagnostics

This commit is contained in:
2026-10-21 06:13:16 +09:00
parent a1748b552c
commit 60eabea19a
+8 -1
View File
@@ -8866,7 +8866,14 @@ mod tests {
})
.await
.expect_err("closed session must reject local operation without another request");
assert!(matches!(error, WorkdirError::Unavailable(_)));
assert!(matches!(
error.classification_source(),
WorkdirError::Unavailable(_)
));
assert_eq!(
error.failure_reason(),
Some(workdir::WorkdirFailureReason::SessionClosed)
);
server.join().expect("mock remote server finished");
}