Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jan 17, 2025
1 parent 6dfc2a7 commit dfef6c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion increment_with_fuzz/fuzz/fuzz_targets/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ fuzz_target!(|input: Input| {
let mut last: Option<u32> = None;
for _ in input.by.. {
match client.try_increment() {
Ok(Ok(current)) => assert!(Some(current) > last),
Ok(Ok(current)) => {
assert!(Some(current) > last);
last = Some(current);
}
Err(Ok(_)) => {} // Expected error
Ok(Err(_)) => panic!("success with wrong type returned"),
Err(Err(_)) => panic!("unrecognised error"),
Expand Down

0 comments on commit dfef6c0

Please sign in to comment.