test(runtime): stabilize docker root mount assertion
This commit is contained in:
parent
9a6fa76825
commit
14066d094f
1 changed files with 5 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue