Skip to content

Commit

Permalink
Fix test failure in ipr request size (#4844)
Browse files Browse the repository at this point in the history
* Fix test failure in ipr request size that suddenly appeared

* Use fixed date in unit test
  • Loading branch information
octol authored Sep 9, 2024
1 parent 85758be commit 7e40207
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/ip-packet-requests/src/v7/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ pub struct HealthRequest {

#[cfg(test)]
mod tests {
use time::macros::datetime;

use super::*;
use std::net::{Ipv4Addr, Ipv6Addr};
use std::str::FromStr;
Expand All @@ -432,7 +434,7 @@ mod tests {
reply_to_hops: None,
reply_to_avg_mix_delays: None,
buffer_timeout: None,
timestamp: OffsetDateTime::now_utc(),
timestamp: datetime!(2024-01-01 12:59:59.5 UTC),
},
signature: None,
}
Expand Down

0 comments on commit 7e40207

Please sign in to comment.