Skip to content

Commit

Permalink
Create output directory if it does not exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed May 20, 2023
1 parent a2732c6 commit f4dd9ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ mod tests {
// Basic integration tests mocking out gofer with a static file
async fn generates_oracle_message() {
env_logger::init();
let price_provider = GoferPriceProvider::new("cat /Users/christian/PersonalProjects/ultrasoundmoney/oracle-client/test_data/input.json");

// Create output directory if it doesn't exist
fs::create_dir_all("./test_data/output").unwrap();

let price_provider = GoferPriceProvider::new("cat ./test_data/input.json");

let signature_provider = PrivateKeySignatureProvider::random();
let public_key = signature_provider.get_public_key().unwrap();
Expand Down

0 comments on commit f4dd9ce

Please sign in to comment.