mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Silence error logs in zed
tests (#13069)
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
This PR silences the remaining error logs in the `zed` crate tests by initializing `env_logger` in test mode. This means that the logs will no longer be shown unless `--nocapture` is passed to `cargo test`. Release Notes: - N/A
This commit is contained in:
parent
ff8486e67f
commit
ea69846281
1 changed files with 1 additions and 1 deletions
|
@ -3121,7 +3121,7 @@ mod tests {
|
|||
|
||||
fn init_test(cx: &mut TestAppContext) -> Arc<AppState> {
|
||||
cx.update(|cx| {
|
||||
env_logger::try_init().ok();
|
||||
env_logger::builder().is_test(true).try_init().ok();
|
||||
|
||||
let mut app_state = AppState::test(cx);
|
||||
|
||||
|
|
Loading…
Reference in a new issue