Skip to content

Commit

Permalink
fixup! add DateTime<Utc> protobuf encoding
Browse files Browse the repository at this point in the history
Increase the number of test cases to 4096 from the default 256.
  • Loading branch information
aalexandrov committed Apr 15, 2022
1 parent 49c732d commit c7a0eba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/repr/src/proto/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,24 +165,22 @@ mod tests {
use proptest::prelude::*;

proptest! {
#![proptest_config(ProptestConfig::with_cases(4096))]

#[test]
fn naive_date_time_protobuf_roundtrip(expect in any_naive_datetime() ) {
let actual = protobuf_repr_roundtrip(&expect);
assert!(actual.is_ok());
assert_eq!(actual.unwrap(), expect);
}
}

proptest! {
#[test]
fn date_time_protobuf_roundtrip(expect in any_datetime() ) {
let actual = protobuf_repr_roundtrip(&expect);
assert!(actual.is_ok());
assert_eq!(actual.unwrap(), expect);
}
}

proptest! {
#[test]
fn fixed_offset_protobuf_roundtrip(expect in any_fixed_offset() ) {
let actual = protobuf_repr_roundtrip(&expect);
Expand Down

0 comments on commit c7a0eba

Please sign in to comment.