From 1efcd3ac613057bd6d2ad0ad533a315924634871 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:37:22 +0200 Subject: [PATCH] Actually forward the error to the test executor --- integration/main.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/integration/main.rs b/integration/main.rs index 40ce479..63ec6de 100644 --- a/integration/main.rs +++ b/integration/main.rs @@ -28,13 +28,6 @@ enum Error{ const VERSION: &str = env!("CARGO_PKG_VERSION"); #[tokio::main] async fn main() { - println!("Hello"); - match test().await { - Ok(()) => {} - Err(e) => eprint!("{e}") - } -} -async fn test() -> Result<(), anyhow::Error>{ dotenv::dotenv().map_err(|e|Error::DotenvInitError(e))?; let username = dotenv::var("USERNAME").map_err(|e|Error::NoUsername(e))?; let password = dotenv::var("PASSWORD").map_err(|e|Error::NoPassword(e))?;