From 3bddf99ba115e39ee98d15e4564ab4d45813ce67 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 1 Mar 2021 10:59:01 +1000 Subject: [PATCH] remove local tz test This was breaking some of the unit tests when they happened to complete in a particular order --- rslib/src/scheduler/cutoff.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/rslib/src/scheduler/cutoff.rs b/rslib/src/scheduler/cutoff.rs index c7727e46c..d4972e143 100644 --- a/rslib/src/scheduler/cutoff.rs +++ b/rslib/src/scheduler/cutoff.rs @@ -213,16 +213,6 @@ mod test { today.days_elapsed } - #[test] - #[cfg(target_vendor = "apple")] - /// On Linux, TZ needs to be set prior to the process being started to take effect, - /// so we limit this test to Macs. - fn local_minutes_west() { - // -480 throughout the year - std::env::set_var("TZ", "Australia/Perth"); - assert_eq!(local_minutes_west_for_stamp(Utc::now().timestamp()), -480); - } - #[test] fn days_elapsed() { let local_offset = local_minutes_west_for_stamp(Utc::now().timestamp());