Skip to content

Commit

Permalink
Fixed incorrect panic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishajr authored and hurl-bot committed Jan 20, 2025
1 parent baddf60 commit 96b80af
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/hurl/src/runner/filter/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,8 @@ mod tests {
fn eval_filter_format_ko_invalid_format() {
let variables = VariableSet::new();

let filter = new_format_filter("%%");
eval_filter(
&filter,
&Value::String("01/01/2025".to_string()),
&variables,
false,
)
.unwrap();
let date = Utc.with_ymd_and_hms(2025, 1, 1, 0, 0, 0).unwrap();
let filter = new_format_filter("%%%");
let _ = eval_filter(&filter, &Value::Date(date), &variables, false);
}
}

0 comments on commit 96b80af

Please sign in to comment.