Fixing stuff
Rust Build / Check (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Test Suite (pull_request) Failing after 1m50s
Rust Build / Clippy (pull_request) Successful in 1m11s
Rust Build / build (pull_request) Successful in 1m33s
Rust Build / Check (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Test Suite (pull_request) Failing after 1m50s
Rust Build / Clippy (pull_request) Successful in 1m11s
Rust Build / build (pull_request) Successful in 1m33s
This commit is contained in:
@@ -158,4 +158,22 @@ async fn test_register_user() {
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_login_user() {
|
||||
let tm_pool = db_mgr::get_pool().await.unwrap();
|
||||
let db_name = db_mgr::generate_db_name().await;
|
||||
|
||||
match db_mgr::create_database(&tm_pool, &db_name).await {
|
||||
Ok(_) => {
|
||||
println!("Success");
|
||||
}
|
||||
Err(e) => {
|
||||
assert!(false, "Error: {:?}", e.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
match db_mgr::drop_database(&tm_pool, &db_name).await {
|
||||
Ok(()) => {}
|
||||
Err(err) => {
|
||||
assert!(false, "Error: {err:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user