mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
e218604708
commit
3bddf99ba1
1 changed files with 0 additions and 10 deletions
|
@ -213,16 +213,6 @@ mod test {
|
||||||
today.days_elapsed
|
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]
|
#[test]
|
||||||
fn days_elapsed() {
|
fn days_elapsed() {
|
||||||
let local_offset = local_minutes_west_for_stamp(Utc::now().timestamp());
|
let local_offset = local_minutes_west_for_stamp(Utc::now().timestamp());
|
||||||
|
|
Loading…
Reference in a new issue