test(onboarding): avoid secret-derived panic output

This commit is contained in:
Hunter Bown
2026-05-13 14:49:05 -05:00
parent 0289f24e88
commit 3451075689
+2 -2
View File
@@ -270,11 +270,11 @@ mod tests {
fn validate_warns_on_short_or_no_hyphen_keys_but_accepts() {
match validate_api_key_for_onboarding("abc123") {
ApiKeyValidation::Accept { warning: Some(_) } => {}
other => panic!("expected accept-with-warning, got {other:?}"),
_ => panic!("expected accept-with-warning"),
}
match validate_api_key_for_onboarding("abcdefghijklmnop") {
ApiKeyValidation::Accept { warning: Some(_) } => {}
other => panic!("expected accept-with-warning, got {other:?}"),
_ => panic!("expected accept-with-warning"),
}
}