Skip to content

Commit ecb495a

Browse files
committed
fix flaky test
1 parent 0912e15 commit ecb495a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core/src/warc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ impl Arbitrary for Request {
265265
fn arbitrary_with(_args: ()) -> Self::Strategy {
266266
(".+", any::<u64>())
267267
.prop_map(|(url, timestamp)| {
268+
let timestamp = timestamp % 1_733_000_000;
269+
268270
let date = match chrono::TimeZone::timestamp_opt(&chrono::Utc, timestamp as i64, 0)
269271
{
270272
chrono::LocalResult::Single(date) => Some(date),

0 commit comments

Comments
 (0)