Skip to content

Commit

Permalink
Merge pull request #595 from hatoo/v1.4.7
Browse files Browse the repository at this point in the history
V1.4.7
  • Loading branch information
hatoo authored Oct 26, 2024
2 parents cc89a35 + e66a3e2 commit c1872df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "MIT"
name = "oha"
readme = "README.md"
repository = "https://github.com/hatoo/oha"
version = "1.4.6"
version = "1.4.7"
rust-version = "1.77"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down Expand Up @@ -82,7 +82,7 @@ assert_cmd = "2.0.14"
axum = { version = "0.7", features = ["http2"] }
bytes = "1.6"
float-cmp = "0.10.0"
jsonschema = "0.25.1"
jsonschema = "0.26.0"
lazy_static = "1.5.0"
predicates = "3.1.0"
regex = "1.10.5"
Expand Down
10 changes: 5 additions & 5 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,17 @@ async fn test_json_schema() {
let value_stats_success_breakdown: serde_json::Value =
serde_json::from_str(&output_json_stats_success_breakdown).unwrap();

if let Err(errors) = validator.validate(&value) {
for error in errors {
if validator.validate(&value).is_err() {
for error in validator.iter_errors(&value) {
eprintln!("{error}");
}
panic!("JSON schema validation failed\n{output_json}");
}

if let Err(errors) = validator.validate(&value_stats_success_breakdown) {
for error in errors {
if validator.validate(&value_stats_success_breakdown).is_err() {
for error in validator.iter_errors(&value_stats_success_breakdown) {
eprintln!("{error}");
}
panic!("JSON schema validation failed\n{output_json_stats_success_breakdown}");
}/* ?? */;
}
}

0 comments on commit c1872df

Please sign in to comment.