fix some broken database tests
This commit is contained in:
parent
d5e5966417
commit
c942c0a4cc
|
@ -398,9 +398,9 @@ mod tests {
|
|||
assert_eq!(
|
||||
db.entries_full(Some(start), None).unwrap().into_iter().map(|e| e.start).collect::<Vec<_>>(),
|
||||
vec![
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(3, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(3, 0, 0),
|
||||
]
|
||||
);
|
||||
|
@ -409,9 +409,9 @@ mod tests {
|
|||
assert_eq!(
|
||||
db.entries_full(None, Some(end)).unwrap().into_iter().map(|e| e.start).collect::<Vec<_>>(),
|
||||
vec![
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
]
|
||||
);
|
||||
|
@ -421,10 +421,10 @@ mod tests {
|
|||
db.entries_full(None, None).unwrap().into_iter().map(|e| e.start).collect::<Vec<_>>(),
|
||||
vec![
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(3, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(1, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(2, 0, 0),
|
||||
Utc.ymd(2021, 7, 7).and_hms(3, 0, 0),
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue