From 214d6e21dd7ed20e8efb155ea1c25f9a4ad27cfd Mon Sep 17 00:00:00 2001 From: Hare Date: Sat, 24 Oct 2026 12:40:37 +0900 Subject: [PATCH] fix: assert classified workdir session closure in tests --- crates/worker-runtime/src/http_server.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/worker-runtime/src/http_server.rs b/crates/worker-runtime/src/http_server.rs index a1faefc73..aefc66973 100644 --- a/crates/worker-runtime/src/http_server.rs +++ b/crates/worker-runtime/src/http_server.rs @@ -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