Skip to content

Commit

Permalink
Conformance test fixes (#366)
Browse files Browse the repository at this point in the history
* json test fixes

* remove commented code

* fix fmt error

* fix from ismail's review
  • Loading branch information
Shivani912 authored Jun 23, 2020
1 parent ed22ca3 commit e6ac367
Show file tree
Hide file tree
Showing 4 changed files with 4,581 additions and 4,786 deletions.
11 changes: 0 additions & 11 deletions light-client/tests/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,23 +254,12 @@ fn run_bisection_test(tc: TestBisection<LightBlock>) {
}

fn run_single_step_tests(dir: &str) {
// TODO: this test need further investigation:
let skipped = ["commit/one_third_vals_don't_sign.json"];

let paths = fs::read_dir(PathBuf::from(TEST_FILES_PATH).join(dir)).unwrap();

for file_path in paths {
let dir_entry = file_path.unwrap();
let fp_str = format!("{}", dir_entry.path().display());

if skipped
.iter()
.any(|failing_case| fp_str.ends_with(failing_case))
{
println!("Skipping JSON test: {}", fp_str);
return;
}

println!(
"Running light client against 'single-step' test-file: {}",
fp_str
Expand Down
Loading

0 comments on commit e6ac367

Please sign in to comment.