Skip to content

Commit

Permalink
Fix prop_state_machine cannot find value config
Browse files Browse the repository at this point in the history
When `#![proptest_config(..)]` is not provided, the macro should use the
default proptest config.
  • Loading branch information
sameer committed Oct 9, 2023
1 parent bf55628 commit bab6ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proptest-state-machine/src/test_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ macro_rules! prop_state_machine {
fn $test_name(
(initial_state, transitions) in <$test $(< $( $ty_param ),+ >)? as StateMachineTest>::Reference::sequential_strategy($size)
) {
$test $(::< $( $ty_param ),+ >)? ::test_sequential(config, initial_state, transitions)
$test $(::< $( $ty_param ),+ >)? ::test_sequential(Default::default(), initial_state, transitions)
}
}
)*
Expand Down

0 comments on commit bab6ed1

Please sign in to comment.