mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-28 10:50:39 +00:00
chore: unset tz env in test (#6984)
chore/unset-tz-env-in-test: ### Commit Message Add environment variable cleanup in timezone tests - Updated `timezone.rs` to include removal of the `TZ` environment variable in the `test_from_tz_string` function to ensure a clean test environment. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
This commit is contained in:
@@ -173,6 +173,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_from_tz_string() {
|
||||
unsafe {
|
||||
std::env::remove_var("TZ");
|
||||
}
|
||||
assert_eq!(
|
||||
Timezone::Named(Tz::UTC),
|
||||
Timezone::from_tz_string("SYSTEM").unwrap()
|
||||
|
||||
Reference in New Issue
Block a user