Skip to content

Commit d140f68

Browse files
committed
test runner: switch to serde_yaml2
1 parent 9ec3fa8 commit d140f68

File tree

3 files changed

+116
-43
lines changed

3 files changed

+116
-43
lines changed

tests/Cargo.lock

Lines changed: 114 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fancy-regex = "0.13.0"
2020
rand = "0.8.5"
2121
rayon = "1.10.0"
2222
serde = { version = "1.0.204", features = ["derive"] }
23-
serde_yaml = "0.9.31"
23+
serde_yaml2 = "0.1.2"
2424
similar = "2.6.0"
2525
tempfile = "3.10.1"
2626
wait-timeout = "0.2.0"

tests/src/test-ftdetect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn _main() -> io::Result<()> {
6464
let mut rng = rand::thread_rng();
6565

6666
let cases = fs::read_to_string("cases/ftdetect.yml")?;
67-
let cases = match serde_yaml::from_str::<Vec<FtdetectCase>>(cases.as_str()) {
67+
let cases = match serde_yaml2::from_str::<Vec<FtdetectCase>>(cases.as_str()) {
6868
Ok(o) => o,
6969
Err(e) => return Err(io::Error::other(e)),
7070
};

0 commit comments

Comments
 (0)