Skip to content

Commit

Permalink
fix issue with test deleting fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 7, 2023
1 parent 0273696 commit 69a1793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module ol_framework::community_wallet {
// can't have less than three signatures
if (n < 3) return false;
// can't have less than five authorities
// pentapedal locomotion https://www.youtube.com/watch?v=bgWJ9DN1Qak
if (m < 5) return false;

let r = fixed_point32::create_from_rational(3, 5);
Expand Down
8 changes: 3 additions & 5 deletions tools/genesis/tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ fn end_to_end_single() {

#[test]
fn end_to_end_all() {
let blob = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/genesis.blob");
let temp_dir = TempPath::new();
temp_dir.create_as_dir().unwrap();
let blob = temp_dir.path().join("temp_genesis.blob");

let p = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("tests/fixtures/sample_export_recovery.json");
Expand Down Expand Up @@ -147,8 +149,4 @@ fn end_to_end_all() {
}
_ => panic!("not a genesis transaction"),
}

if blob.exists() {
fs::remove_file(blob).unwrap()
}
}

0 comments on commit 69a1793

Please sign in to comment.