drop param_bail test

it's not actually testing anything useful

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-03-04 09:44:50 +01:00
parent 7c7e99dca1
commit 1e0c04a4ba

View File

@ -395,16 +395,3 @@ fn test_verify_complex_array() {
assert!(res.is_err()); assert!(res.is_err());
} }
} }
#[test]
fn test_parameter_error_macro() {
fn _bail_with_format() -> Result<(), anyhow::Error> {
let baz = "baz";
param_bail!("foo", "bar: {}", baz);
}
fn _bail_with_err() -> Result<(), anyhow::Error> {
let err = anyhow::format_err!("bar");
param_bail!("foo", err);
}
}