test validator write stake account to JSON (#33014)
This commit is contained in:
parent
16ea141402
commit
72706d6601
|
@ -838,6 +838,14 @@ impl TestValidator {
|
||||||
ledger_path.join("validator-keypair.json").to_str().unwrap(),
|
ledger_path.join("validator-keypair.json").to_str().unwrap(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
write_keypair_file(
|
||||||
|
&validator_stake_account,
|
||||||
|
ledger_path
|
||||||
|
.join("stake-account-keypair.json")
|
||||||
|
.to_str()
|
||||||
|
.unwrap(),
|
||||||
|
)?;
|
||||||
|
|
||||||
// `ledger_exists` should fail until the vote account keypair is written
|
// `ledger_exists` should fail until the vote account keypair is written
|
||||||
assert!(!TestValidatorGenesis::ledger_exists(&ledger_path));
|
assert!(!TestValidatorGenesis::ledger_exists(&ledger_path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue