@@ -460,12 +460,16 @@ pub fn registry_strategy(
460
460
461
461
/// This test is to test the generator to ensure
462
462
/// that it makes registries with large dependency trees
463
+ ///
464
+ /// This is a form of randomized testing, if you are unlucky it can fail.
465
+ /// A failure on it's own is not a big dael. If you did not change the
466
+ /// `registry_strategy` then feel free to retry without concern.
463
467
#[ test]
464
468
fn meta_test_deep_trees_from_strategy ( ) {
465
469
let mut dis = [ 0 ; 21 ] ;
466
470
467
471
let strategy = registry_strategy ( 50 , 20 , 60 ) ;
468
- for _ in 0 ..64 {
472
+ for _ in 0 ..128 {
469
473
let PrettyPrintRegistry ( input) = strategy
470
474
. new_tree ( & mut TestRunner :: default ( ) )
471
475
. unwrap ( )
@@ -488,19 +492,23 @@ fn meta_test_deep_trees_from_strategy() {
488
492
}
489
493
490
494
panic ! (
491
- "In 640 tries we did not see a wide enough distribution of dependency trees! dis: {:?}" ,
495
+ "In 1280 tries we did not see a wide enough distribution of dependency trees! dis: {:?}" ,
492
496
dis
493
497
) ;
494
498
}
495
499
496
500
/// This test is to test the generator to ensure
497
501
/// that it makes registries that include multiple versions of the same library
502
+ ///
503
+ /// This is a form of randomized testing, if you are unlucky it can fail.
504
+ /// A failure on its own is not a big deal. If you did not change the
505
+ /// `registry_strategy` then feel free to retry without concern.
498
506
#[ test]
499
507
fn meta_test_multiple_versions_strategy ( ) {
500
508
let mut dis = [ 0 ; 10 ] ;
501
509
502
510
let strategy = registry_strategy ( 50 , 20 , 60 ) ;
503
- for _ in 0 ..64 {
511
+ for _ in 0 ..128 {
504
512
let PrettyPrintRegistry ( input) = strategy
505
513
. new_tree ( & mut TestRunner :: default ( ) )
506
514
. unwrap ( )
@@ -524,7 +532,7 @@ fn meta_test_multiple_versions_strategy() {
524
532
}
525
533
}
526
534
panic ! (
527
- "In 640 tries we did not see a wide enough distribution of multiple versions of the same library! dis: {:?}" ,
535
+ "In 1280 tries we did not see a wide enough distribution of multiple versions of the same library! dis: {:?}" ,
528
536
dis
529
537
) ;
530
538
}
0 commit comments