chore(relay): merge the duplicated test module in apns.rs

cargo test on the published tree failed with E0428 since 1.2.0.
This commit is contained in:
Julius Joska
2026-10-09 14:05:39 +02:00
parent e3a2378c34
commit 94cfd72690
-9
View File
@@ -201,13 +201,4 @@ mod tests {
assert!(limit <= 30 * 86_400, "APNs nedrží notifikace déle než 30 dní");
}
#[test]
fn budicek_drzi_apns_stejne_dlouho_jako_fronta() {
let ted = DateTime::parse_from_rfc3339("2026-09-29T18:00:00Z")
.unwrap()
.with_timezone(&Utc);
let limit = wake_expiration(ted) - ted.timestamp();
assert_eq!(limit, crate::state::QUEUE_TTL_DAYS * 86_400);
assert!(limit <= 30 * 86_400, "APNs nedrží notifikace déle než 30 dní");
}
}