move tmp_ledger back to target dir

This commit is contained in:
Rob Walker
2018-08-13 12:53:30 -07:00
parent ab10b7676a
commit e8da903c6c
4 changed files with 12 additions and 4 deletions

View File

@@ -549,9 +549,11 @@ mod tests {
use transaction::{Transaction, Vote};
fn tmp_ledger_path(name: &str) -> String {
use std::env;
let out_dir = env::var("OUT_DIR").unwrap();
let keypair = Keypair::new();
format!("/tmp/tmp-ledger-{}-{}", name, keypair.pubkey())
format!("{}/tmp-ledger-{}-{}", out_dir, name, keypair.pubkey())
}
#[test]