claude-connector: drop Ok Vec<CallerAdmission> before unwrap_err in readiness_of_in test

This commit is contained in:
Meta Vens 2026-12-03 23:24:46 +01:00
commit 6d22c60529

View file

@ -1266,7 +1266,7 @@ mod tests {
assert!(readiness_of_in(&config, Some(&creds)).is_ok());
// Missing credentials directory names the first entry needing one.
let no_dir = readiness_of_in(&config, None).unwrap_err();
let no_dir = readiness_of_in(&config, None).map(drop).unwrap_err();
assert!(matches!(
no_dir,
ConfigError::UnusableEntry { ref id, field: "credentials_directory" }
@ -1275,7 +1275,9 @@ mod tests {
// Empty credential on the second entry fails naming `provider-two` and never leaks secrets.
std::fs::write(creds.join(CRED_B), "").unwrap();
let empty = readiness_of_in(&config, Some(&creds)).unwrap_err();
let empty = readiness_of_in(&config, Some(&creds))
.map(drop)
.unwrap_err();
let rendered = format!("{empty} {empty:?}");
assert!(
matches!(
@ -1292,7 +1294,9 @@ mod tests {
// Missing credential file on the second entry also fails naming `provider-two`.
std::fs::remove_file(creds.join(CRED_B)).unwrap();
let missing = readiness_of_in(&config, Some(&creds)).unwrap_err();
let missing = readiness_of_in(&config, Some(&creds))
.map(drop)
.unwrap_err();
assert!(matches!(
missing,
ConfigError::UnusableEntry { ref id, field: "credential" }