remove local tz test

This was breaking some of the unit tests when they happened to
complete in a particular order
This commit is contained in:
Damien Elmes 2021-03-01 10:59:01 +10:00
parent e218604708
commit 3bddf99ba1

View File

@ -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());