From e4dc04ba96f3f060841b2640004f5b5e92345ded Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 1 Apr 2025 23:19:27 -0400 Subject: [PATCH] Updated tests --- tests/auth_tests.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/auth_tests.rs b/tests/auth_tests.rs index 48143d5..c5b103c 100644 --- a/tests/auth_tests.rs +++ b/tests/auth_tests.rs @@ -64,7 +64,8 @@ async fn test_db_health_check() { .await .unwrap(); let _host_ip = container.get_host().await.unwrap(); - let host_port = container.get_host_port_ipv4(5432).await.unwrap(); + let port = 5432; + let host_port = container.get_host_port_ipv4(port).await.unwrap(); let conn_string = &format!( "postgres://postgres:postgres@localhost:{}/postgres", host_port @@ -72,5 +73,13 @@ async fn test_db_health_check() { println!("Test Database: {}", conn_string); - let _test_pool = PgPoolOptions::new().connect(conn_string).await.unwrap(); + let _test_pool = + match PgPoolOptions::new().connect(conn_string).await { + Ok(_) => { + assert!(true, "Success"); + } + Err(err) => { + assert!(false, "Error: {:?}", err.to_string()); + } + }; }