style(tests): apply rustfmt to brittle-test hardening changes

This commit is contained in:
Chummy 2026-02-18 14:14:20 +08:00 committed by Chummy
parent 45cdd25b3d
commit 431287184b
4 changed files with 68 additions and 17 deletions

View file

@ -761,7 +761,10 @@ mod tests {
// The error should be about git (not about autonomy/read-only mode)
assert!(!result.success, "Expected failure due to missing git repo");
let error_msg = result.error.as_deref().unwrap_or("");
assert!(!error_msg.is_empty(), "Expected a git-related error message");
assert!(
!error_msg.is_empty(),
"Expected a git-related error message"
);
assert!(
!error_msg.contains("read-only") && !error_msg.contains("autonomy"),
"Error should be about git, not about autonomy restrictions: {error_msg}"