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:
Max Brunsfeld 2022-02-07 15:00:00 -08:00
parent 8a2613d49c
commit e3f055d950
7 changed files with 99 additions and 47 deletions

View file

@ -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]