Skip to content

Commit dcb6b1c

Browse files
committed
Actually forward the error to the test executor
1 parent f21e958 commit dcb6b1c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

integration/main.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@ enum Error{
2727

2828
const VERSION: &str = env!("CARGO_PKG_VERSION");
2929
#[tokio::main]
30-
async fn main() {
31-
println!("Hello");
32-
match test().await {
33-
Ok(()) => {}
34-
Err(e) => eprint!("{e}")
35-
}
36-
}
37-
async fn test() -> Result<(), anyhow::Error>{
30+
async fn main() -> Result<(), anyhow::Error> {
3831
dotenv::dotenv().map_err(|e|Error::DotenvInitError(e))?;
3932
let username = dotenv::var("USERNAME").map_err(|e|Error::NoUsername(e))?;
4033
let password = dotenv::var("PASSWORD").map_err(|e|Error::NoPassword(e))?;

0 commit comments

Comments
 (0)