Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Added debug output for unit tests to help with diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
chotchki committed Aug 28, 2021
1 parent 05cb708 commit c44d9ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use feophantlib::feophant::FeOphant;
use log::LevelFilter;
use simplelog::{ColorChoice, CombinedLogger, Config, TermLogger, TerminalMode};
use tempfile::TempDir;
use tokio::sync::oneshot;
use tokio::sync::{
Expand All @@ -9,6 +11,13 @@ use tokio_postgres::{Client, NoTls};

pub async fn _create_server_and_client(
) -> Result<(UnboundedSender<Sender<()>>, Client), Box<dyn std::error::Error>> {
CombinedLogger::init(vec![TermLogger::new(
LevelFilter::Debug,
Config::default(),
TerminalMode::Mixed,
ColorChoice::Auto,
)])?;

let tmp = TempDir::new()?;

let (request_shutdown, receive_shutdown): (
Expand Down

0 comments on commit c44d9ae

Please sign in to comment.