Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sophokles73 committed Jan 26, 2024
1 parent caf0dbf commit a7849b4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/fms-server/src/query_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,9 @@ mod tests {
let result = parse_query_parameters(&parameters);
assert!(result.is_ok(), "Expected Ok but got Err");
let query_result = result.unwrap();
assert_eq!(
query_result
.latest_only
.unwrap_or_else(|| panic!("No latestOnly present")),
false
);
assert!(!query_result
.latest_only
.unwrap_or_else(|| panic!("No latestOnly present")));
assert_eq!(
query_result.vin.unwrap_or_else(|| panic!("No vin present")),
"WDD169005-1J-236684"
Expand Down

0 comments on commit a7849b4

Please sign in to comment.