From 40e232f4d6985f687e7a6c9c9cc2c2dfc43b5194 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 14 May 2021 11:36:52 +0200 Subject: [PATCH] drop bogus tests Signed-off-by: Thomas Lamprecht --- proxmox/src/tools/email.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/proxmox/src/tools/email.rs b/proxmox/src/tools/email.rs index fc69488c..895d2b64 100644 --- a/proxmox/src/tools/email.rs +++ b/proxmox/src/tools/email.rs @@ -112,19 +112,6 @@ pub fn sendmail( mod test { use crate::tools::email::sendmail; - #[test] - fn send_email_to_root_localhost() { - let result = sendmail( - &["root@localhost"], - "Subject1", - Some("TEXT"), - Some("HTML"), - Some("root@localhost"), - Some("test1"), - ); - assert!(result.is_ok()); - } - #[test] fn email_without_recipients() { let result = sendmail( @@ -137,17 +124,4 @@ mod test { ); assert!(result.is_err()); } - - #[test] - fn email_with_non_existant_recipient() { - let result = sendmail( - &["some-nonexistant-proxmox-user"], - "Subject3", - None, - Some("HTML"), - None, - Some("test1"), - ); - assert!(result.is_ok()); - } }