File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -716,7 +716,15 @@ mod tests {
716
716
}
717
717
718
718
// Tests to ensure that conversion [DynSolValue] -> [serde_json::Value] -> [DynSolValue]
719
+ use proptest:: prelude:: ProptestConfig ;
719
720
proptest:: proptest! {
721
+ #![ proptest_config( ProptestConfig {
722
+ cases: 99 ,
723
+ // These are flaky so persisting them is not useful in CI.
724
+ failure_persistence: None ,
725
+ ..Default :: default ( )
726
+ } ) ]
727
+
720
728
#[ test]
721
729
fn test_json_roundtrip_guessed( v in guessable_types( ) ) {
722
730
let json = serialize_value_as_json( v. clone( ) ) . unwrap( ) ;
@@ -729,9 +737,9 @@ mod tests {
729
737
730
738
#[ test]
731
739
fn test_json_roundtrip( v in proptest:: arbitrary:: any:: <DynSolValue >( ) . prop_filter( "filter out values without type" , |v| v. as_type( ) . is_some( ) ) ) {
732
- let json = serialize_value_as_json( v. clone( ) ) . unwrap( ) ;
740
+ let json = serialize_value_as_json( v. clone( ) ) . unwrap( ) ;
733
741
let value = parse_json_as( & json, & v. as_type( ) . unwrap( ) ) . unwrap( ) ;
734
- assert_eq!( value, v) ;
742
+ assert_eq!( value, v) ;
735
743
}
736
744
}
737
745
}
You can’t perform that action at this time.
0 commit comments