File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
crates/evm/evm/src/executors/fuzz Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -227,12 +227,19 @@ impl FuzzedExecutor {
227227 // Discard run and apply max rejects if configured. Saturate to handle
228228 // the case of replayed failure, which doesn't count as a run.
229229 test_data. runs = test_data. runs . saturating_sub ( 1 ) ;
230- if self . config . max_test_rejects > 0 {
231- test_data. rejects += 1 ;
232- if test_data. rejects >= self . config . max_test_rejects {
233- test_data. failure = Some ( err) ;
234- break ' stop;
235- }
230+ test_data. rejects += 1 ;
231+
232+ // Update progress bar to reflect rejected runs.
233+ if let Some ( progress) = progress {
234+ progress. set_message ( format ! ( "([{}] rejected)" , test_data. rejects) ) ;
235+ progress. dec ( 1 ) ;
236+ }
237+
238+ if self . config . max_test_rejects > 0
239+ && test_data. rejects >= self . config . max_test_rejects
240+ {
241+ test_data. failure = Some ( err) ;
242+ break ' stop;
236243 }
237244 }
238245 }
You can’t perform that action at this time.
0 commit comments