Skip to content

Commit

Permalink
remove another use of /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-solana committed Oct 17, 2018
1 parent 2bd8775 commit 50d095a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/multinode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ fn converge(leader: &NodeInfo, num_nodes: usize) -> Vec<NodeInfo> {
}

fn tmp_ledger_path(name: &str) -> String {
use std::env;
let out_dir = env::var("OUT_DIR").unwrap_or_else(|_| "target".to_string());
let keypair = Keypair::new();

format!("/tmp/tmp-ledger-{}-{}", name, keypair.pubkey())
format!("{}/tmp/ledger-{}-{}", out_dir, name, keypair.pubkey());
}

fn genesis(name: &str, num: i64) -> (Mint, String, Vec<Entry>) {
Expand Down

0 comments on commit 50d095a

Please sign in to comment.