From 1e0c04a4ba2851024188c006ee08bf517bd8d7cc Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 4 Mar 2022 09:44:50 +0100 Subject: [PATCH] drop param_bail test it's not actually testing anything useful Signed-off-by: Wolfgang Bumiller --- proxmox-schema/tests/schema.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/proxmox-schema/tests/schema.rs b/proxmox-schema/tests/schema.rs index a0d79866..ed09bb18 100644 --- a/proxmox-schema/tests/schema.rs +++ b/proxmox-schema/tests/schema.rs @@ -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); - } -}