From dcb6b1c4b5f6694b6dc47db694a166da99ebcd4f 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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/integration/main.rs b/integration/main.rs index 40ce479..edba18e 100644 --- a/integration/main.rs +++ b/integration/main.rs @@ -27,14 +27,7 @@ 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>{ +async fn main() -> 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))?;