Add/employ create_new_tmp_ledger!()

This commit is contained in:
Michael Vines
2019-02-26 19:19:34 -08:00
parent 55a76ed4b0
commit 5a7b99ecc2
7 changed files with 30 additions and 39 deletions

View File

@@ -501,8 +501,7 @@ mod tests {
let validator_node = Node::new_localhost_with_pubkey(validator_keypair.pubkey());
let (genesis_block, _mint_keypair) =
GenesisBlock::new_with_leader(10_000, leader_keypair.pubkey(), 1000);
let (validator_ledger_path, _last_id) =
create_new_tmp_ledger("validator_exit", &genesis_block).unwrap();
let (validator_ledger_path, _last_id) = create_new_tmp_ledger!(&genesis_block).unwrap();
let validator = Fullnode::new(
validator_node,
@@ -581,7 +580,7 @@ mod tests {
genesis_block.slots_per_epoch = slots_per_epoch;
let (bootstrap_leader_ledger_path, _last_id) =
create_new_tmp_ledger("test_leader_to_leader_transition", &genesis_block).unwrap();
create_new_tmp_ledger!(&genesis_block).unwrap();
// Start the bootstrap leader
let bootstrap_leader = Fullnode::new(