Skip to content

Commit

Permalink
test runner: switch to serde_yaml2
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Aug 2, 2024
1 parent 9ec3fa8 commit d140f68
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 43 deletions.
155 changes: 114 additions & 41 deletions tests/Cargo.lock

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

2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fancy-regex = "0.13.0"
rand = "0.8.5"
rayon = "1.10.0"
serde = { version = "1.0.204", features = ["derive"] }
serde_yaml = "0.9.31"
serde_yaml2 = "0.1.2"
similar = "2.6.0"
tempfile = "3.10.1"
wait-timeout = "0.2.0"
2 changes: 1 addition & 1 deletion tests/src/test-ftdetect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn _main() -> io::Result<()> {
let mut rng = rand::thread_rng();

let cases = fs::read_to_string("cases/ftdetect.yml")?;
let cases = match serde_yaml::from_str::<Vec<FtdetectCase>>(cases.as_str()) {
let cases = match serde_yaml2::from_str::<Vec<FtdetectCase>>(cases.as_str()) {
Ok(o) => o,
Err(e) => return Err(io::Error::other(e)),
};
Expand Down

0 comments on commit d140f68

Please sign in to comment.