Skip to content

Commit

Permalink
Actually forward the error to the test executor
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Sep 20, 2024
1 parent f21e958 commit 1efcd3a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;
Expand Down

0 comments on commit 1efcd3a

Please sign in to comment.