Skip to content

Commit

Permalink
restore logging during tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
  • Loading branch information
andrewwhitehead committed May 17, 2023
1 parent c818ff2 commit a163370
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions askar-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ postgres = ["sqlx", "sqlx/postgres", "sqlx/tls"]
sqlite = ["sqlx", "sqlx/sqlite"]
pg_test = ["postgres"]

[dev-dependencies]
hex-literal = "0.3"
rand = { version = "0.8" }

[dependencies]
arc-swap = "1.6"
async-lock = "2.5"
Expand Down Expand Up @@ -65,5 +61,10 @@ default-features = false
features = ["chrono", "runtime-tokio-rustls"]
optional = true

[dev-dependencies]
env_logger = "0.9"
hex-literal = "0.4"
rand = { version = "0.8" }

[[test]]
name = "backends"
2 changes: 1 addition & 1 deletion askar-storage/tests/backends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ macro_rules! backend_tests {
}

fn log_init() {
// env_logger::builder().is_test(true).try_init().unwrap_or(());
env_logger::builder().is_test(true).try_init().unwrap_or(());
}

#[cfg(feature = "sqlite")]
Expand Down

0 comments on commit a163370

Please sign in to comment.