@@ -289,6 +289,14 @@ impl<G, Engine, InputOwnership> TestTarget<G, Engine, InputOwnership> {
289289 self . driver_options . set_exhaustive ( true ) ;
290290 self
291291 }
292+
293+ fn as_unbounded_options ( & self ) -> bolero_generator:: driver:: Options {
294+ let mut options = self . driver_options . clone ( ) ;
295+ if options. max_len ( ) . is_none ( ) {
296+ options. set_max_len ( usize:: MAX ) ;
297+ }
298+ options
299+ }
292300}
293301
294302impl < G : generator:: ValueGenerator , Engine , InputOwnership > TestTarget < G , Engine , InputOwnership > {
@@ -439,8 +447,9 @@ where
439447 E : Engine < bolero_engine:: BorrowedGeneratorTest < F , G , G :: Output > > ,
440448 bolero_engine:: BorrowedGeneratorTest < F , G , G :: Output > : Test ,
441449 {
450+ let options = self . as_unbounded_options ( ) ;
442451 let test = bolero_engine:: BorrowedGeneratorTest :: new ( test, self . generator ) ;
443- self . engine . run ( test, self . driver_options )
452+ self . engine . run ( test, options )
444453 }
445454}
446455
@@ -454,8 +463,9 @@ where
454463 E : Engine < bolero_engine:: ClonedGeneratorTest < F , G , G :: Output > > ,
455464 bolero_engine:: ClonedGeneratorTest < F , G , G :: Output > : Test ,
456465 {
466+ let options = self . as_unbounded_options ( ) ;
457467 let test = bolero_engine:: ClonedGeneratorTest :: new ( test, self . generator ) ;
458- self . engine . run ( test, self . driver_options )
468+ self . engine . run ( test, options )
459469 }
460470}
461471
@@ -478,7 +488,8 @@ impl<E> TestTarget<ByteSliceGenerator, E, BorrowedInput> {
478488 R : bolero_engine:: IntoResult ,
479489 E : bolero_engine:: ScopedEngine ,
480490 {
481- self . engine . run ( test, self . driver_options )
491+ let options = self . as_unbounded_options ( ) ;
492+ self . engine . run ( test, options)
482493 }
483494}
484495
0 commit comments