From e68bc9d988b429518afea5c43fa08a3d62b6b623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljoscha=20P=C3=B6rtner?= Date: Sat, 31 Aug 2024 10:29:59 +0200 Subject: [PATCH] test(logging): unset env before testing error case --- src/logging.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logging.rs b/src/logging.rs index bb0f827..2972ea8 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -39,6 +39,7 @@ mod tests { #[rstest] fn err_if_level_not_set() { + env::remove_var("RUST_LOG"); assert!(get_subscriber(false).is_err()); } }