forked from Proxmox/proxmox
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:
parent
7c7e99dca1
commit
1e0c04a4ba
@ -395,16 +395,3 @@ fn test_verify_complex_array() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user