notify: renderer: adapt to changes in proxmox-time
A recent commit [1] changed the `Display` implementation of `TimeSpan` such that minutes are now displayed as `20m` instead of `20min`. This commit adapts the tests for the notification template renderer accordingly. [1] 19129960 ("time: display minute/month such that it can be parsed again") Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
3817b3ba50
commit
0517d7b94e
@ -329,8 +329,8 @@ mod tests {
|
||||
Some("1 KiB".to_string())
|
||||
);
|
||||
|
||||
assert_eq!(value_to_duration(&json!(60)), Some("1min ".to_string()));
|
||||
assert_eq!(value_to_duration(&json!("60")), Some("1min ".to_string()));
|
||||
assert_eq!(value_to_duration(&json!(60)), Some("1m".to_string()));
|
||||
assert_eq!(value_to_duration(&json!("60")), Some("1m".to_string()));
|
||||
|
||||
// The rendered value is in localtime, so we only check if the result is `Some`...
|
||||
// ... otherwise the test will break in another timezone :S
|
||||
|
Loading…
x
Reference in New Issue
Block a user