Skip to content

Commit

Permalink
update test/health_check.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
josemoura212 committed Jun 7, 2024
1 parent 8e201bc commit 6a5f248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/health_check.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::net::TcpListener;

use sqlx::{Connection, PgConnection, PgPool};
use sqlx::Executor;
use sqlx::{Connection, PgConnection, PgPool};
use uuid::Uuid;

use zero2prod::configuration::{DatabaseSettings, get_configuration};
use zero2prod::configuration::{get_configuration, DatabaseSettings};

pub struct TestApp {
pub address: String,
Expand All @@ -23,7 +23,7 @@ async fn spawn_app() -> TestApp {

let server =
zero2prod::startup::run(listener, connection_pool.clone()).expect("Failed to bind address");
let _ = tokio::spawn(server);
let _ = tokio::spawn(server);

TestApp {
address,
Expand Down

0 comments on commit 6a5f248

Please sign in to comment.