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
.expect_err("close must be terminal");
assert!(matches!(
closed_error,
closed_error.classification_source(),
workdir::WorkdirError::Unavailable(_)
));
assert_eq!(
closed_error.failure_reason(),
Some(workdir::WorkdirFailureReason::SessionClosed)
);
assert!(
state
.workdir_sessions