Use a pool of databases to speed up integration tests
Also, use env_logger consistently in the tests for each crate. Only initiallize the logger at all if some RUST_LOG env var is set. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
8a2613d49c
commit
e3f055d950
7 changed files with 99 additions and 47 deletions
|
@ -12,8 +12,9 @@ use util::test::Network;
|
|||
#[cfg(test)]
|
||||
#[ctor::ctor]
|
||||
fn init_logger() {
|
||||
// std::env::set_var("RUST_LOG", "info");
|
||||
env_logger::init();
|
||||
if std::env::var("RUST_LOG").is_ok() {
|
||||
env_logger::init();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue