Skip to content

Commit

Permalink
Ignore bad variant of InitCollision
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Jan 24, 2024
1 parent ffe20d0 commit 064af81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eth_test_parser/src/fs_scaffolding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ fn get_deserialized_test_body(entry: &DirEntry) -> Result<Vec<TestBody>> {
let buf = BufReader::new(File::open(entry.path())?);
let test_file: TestFile = serde_json::from_reader(buf)?;

let tests: Vec<TestBody> = test_file.0.into_values().collect();
let tests: Vec<TestBody> = test_file

Check failure on line 133 in eth_test_parser/src/fs_scaffolding.rs

View workflow job for this annotation

GitHub Actions / Formatting and Clippy

useless conversion to the same type: `std::collections::hash_map::IntoValues<std::string::String, deserialize::TestBody>`
.0
.into_values()
.into_iter()
// This test has an impossible configuration, ans is hence not provable.
.filter(|t| !t.name.contains("InitCollision_d2g0v0_Shanghai"))
.collect();
if tests.is_empty() {
Err(anyhow!("No valid tests found"))
} else {
Expand Down

0 comments on commit 064af81

Please sign in to comment.