zlog: Replace usages of env_logger in tests with zlog (#31436)
Also fixes: https://github.com/zed-industries/zed/pull/31400#issuecomment-2908165249 Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -40,6 +40,6 @@ workspace-hack.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
collections = { workspace = true, features = ["test-support"] }
|
||||
env_logger.workspace = true
|
||||
gpui = { workspace = true, features = ["test-support"] }
|
||||
proto = { workspace = true, features = ["test-support"] }
|
||||
zlog.workspace = true
|
||||
|
||||
@@ -684,9 +684,7 @@ mod tests {
|
||||
use gpui::TestAppContext;
|
||||
|
||||
fn init_logger() {
|
||||
if std::env::var("RUST_LOG").is_ok() {
|
||||
env_logger::init();
|
||||
}
|
||||
zlog::init_test();
|
||||
}
|
||||
|
||||
#[gpui::test(iterations = 50)]
|
||||
|
||||
Reference in New Issue
Block a user