feat: fix tests
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-04-05 21:10:22 +02:00
parent 94ae4d53d3
commit e8f23d2322
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 5 additions and 2 deletions

View File

@ -2,3 +2,4 @@
members = [ members = [
"crates/*" "crates/*"
] ]
resolver = "2"

View File

@ -16,6 +16,7 @@ use async_graphql::{
}; };
use graphql::CibusSchema; use graphql::CibusSchema;
use sqlx::PgPool; use sqlx::PgPool;
use tokio::net::TcpListener;
use tower_http::{cors::CorsLayer, trace::TraceLayer}; use tower_http::{cors::CorsLayer, trace::TraceLayer};
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
@ -77,8 +78,9 @@ async fn main() -> anyhow::Result<()> {
); );
tracing::info!("Starting webserver"); tracing::info!("Starting webserver");
axum::Server::bind(&"0.0.0.0:3001".parse().unwrap())
.serve(app.into_make_service()) let listener = TcpListener::bind("0.0.0.0:3001").await?;
axum::serve(listener, app.into_make_service())
.await .await
.unwrap(); .unwrap();