fix: assert classified workdir session closure in tests

This commit is contained in:
2026-10-24 12:40:37 +09:00
parent fca5c23345
commit 214d6e21dd
+5 -1
View File
@@ -3206,9 +3206,13 @@ mod tests {
.await .await
.expect_err("close must be terminal"); .expect_err("close must be terminal");
assert!(matches!( assert!(matches!(
closed_error, closed_error.classification_source(),
workdir::WorkdirError::Unavailable(_) workdir::WorkdirError::Unavailable(_)
)); ));
assert_eq!(
closed_error.failure_reason(),
Some(workdir::WorkdirFailureReason::SessionClosed)
);
assert!( assert!(
state state
.workdir_sessions .workdir_sessions