1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Fixes a broken test
This fixes a test that is failing because it is based on system time.
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: time-humanize/src/humantime.rs
===================================================================
--- time-humanize.orig/src/humantime.rs
+++ time-humanize/src/humantime.rs
@@ -536,12 +536,12 @@ mod tests {
assert_eq!("now", format!("{}", ht))
}
- #[test]
- fn test_duration_from_system_time_since_epoch() {
- let ht = HumanTime::from(SystemTime::UNIX_EPOCH);
- // Well this will work for one year
- assert_eq!("51 years ago", format!("{}", ht))
- }
+// #[test]
+// fn test_duration_from_system_time_since_epoch() {
+// let ht = HumanTime::from(SystemTime::UNIX_EPOCH);
+// // Well this will work for one year
+// assert_eq!("51 years ago", format!("{}", ht))
+// }
#[test]
fn test_add_human_time() {
|