From 14066d094fbffd4ebd0ceae4c61e101c9128b76f Mon Sep 17 00:00:00 2001 From: Chummy Date: Wed, 18 Feb 2026 14:29:00 +0800 Subject: [PATCH] test(runtime): stabilize docker root mount assertion --- src/runtime/docker.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runtime/docker.rs b/src/runtime/docker.rs index cb25e72..695b44c 100644 --- a/src/runtime/docker.rs +++ b/src/runtime/docker.rs @@ -248,7 +248,11 @@ mod tests { result.is_err(), "mounting filesystem root (/) must be refused" ); - assert!(result.unwrap_err().to_string().contains("root")); + let error_chain = format!("{:#}", result.unwrap_err()); + assert!( + error_chain.contains("root"), + "expected root-mount error chain, got: {error_chain}" + ); } #[test]