Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Aug 8, 2024
1 parent bb58311 commit 70f3a36
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/utils/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use libiam::{
use matverseny_backend::State;
use migration::MigratorTrait;
use reqwest::Client;
use sea_orm::{ConnectOptions, Database, DbConn};
use sea_orm::{Database, DbConn};
use serde_json::json;
use std::{
env,
Expand Down Expand Up @@ -84,8 +84,7 @@ async fn setup_database() -> (ContainerAsync<Postgres>, DbConn) {
container.get_host_port_ipv4(5432).await.unwrap(),
);

let opts = ConnectOptions::new(connection_string);
let db = Database::connect(opts)
let db = Database::connect(connection_string)
.await
.inspect_err(|err| tracing::error!("postgres connect err: {err:?}"))
.unwrap();
Expand Down Expand Up @@ -142,7 +141,10 @@ pub async fn setup() -> Env {

setup_logging();

let (iam, db, nats) = tokio::join!(setup_iam(), setup_database(), setup_nats());
// let (iam, db, nats) = tokio::join!(setup_iam(), setup_database(), setup_nats());
let iam = setup_iam().await;
let db = setup_database().await;
let nats = setup_nats().await;

let (app, iam, iam_db) = iam;
let (container, db) = db;
Expand Down

0 comments on commit 70f3a36

Please sign in to comment.