Updated tests
Some checks failed
Rust Build / Check (pull_request) Successful in 44s
Rust Build / Test Suite (pull_request) Failing after 1m30s
Rust Build / Rustfmt (pull_request) Failing after 26s
Rust Build / Clippy (pull_request) Successful in 44s
Rust Build / build (pull_request) Successful in 1m6s
Some checks failed
Rust Build / Check (pull_request) Successful in 44s
Rust Build / Test Suite (pull_request) Failing after 1m30s
Rust Build / Rustfmt (pull_request) Failing after 26s
Rust Build / Clippy (pull_request) Successful in 44s
Rust Build / build (pull_request) Successful in 1m6s
This commit is contained in:
@@ -64,7 +64,8 @@ async fn test_db_health_check() {
|
|||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let _host_ip = container.get_host().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!(
|
let conn_string = &format!(
|
||||||
"postgres://postgres:postgres@localhost:{}/postgres",
|
"postgres://postgres:postgres@localhost:{}/postgres",
|
||||||
host_port
|
host_port
|
||||||
@@ -72,5 +73,13 @@ async fn test_db_health_check() {
|
|||||||
|
|
||||||
println!("Test Database: {}", conn_string);
|
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());
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user