Skip to content

Commit

Permalink
Merge pull request #53 from topos-protocol/ignore-malformed-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jan 25, 2024
2 parents a3bfb54 + 97c1a4e commit 2b42419
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,12 @@ 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
.0
.into_values()
// 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 2b42419

Please sign in to comment.