Skip to content

Commit

Permalink
fix for windows: avoid colon in file names
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Nov 25, 2024
1 parent 9df2d15 commit 8a4f3d5
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ fn get_consignment_from_yaml(fname: &str) -> Transfer {
}

fn get_tx(witness_id: &str) -> (Tx, XWitnessId) {
let yaml_path = format!("tests/fixtures/{witness_id}.yaml");
let normalized_witness_id = witness_id.replace(":", "_");
let yaml_path = format!("tests/fixtures/{normalized_witness_id}.yaml");
let file = std::fs::File::open(yaml_path).unwrap();
let tx: Tx = serde_yaml::from_reader(file).unwrap();
let xwitness_id = XWitnessId::from_str(witness_id).unwrap();
Expand Down

0 comments on commit 8a4f3d5

Please sign in to comment.