Skip to content

Commit

Permalink
test(logging): unset env before testing error case
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoshare committed Aug 31, 2024
1 parent 4fece4c commit 93ad2c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod tests {

#[rstest]
fn err_if_level_not_set() {
env::remove_var("RUST_LOG");
assert!(get_subscriber(false).is_err());
}
}

0 comments on commit 93ad2c9

Please sign in to comment.