diff --git a/test-validator/src/lib.rs b/test-validator/src/lib.rs index 5737f71a6..e807f80c9 100644 --- a/test-validator/src/lib.rs +++ b/test-validator/src/lib.rs @@ -838,6 +838,14 @@ impl TestValidator { 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 assert!(!TestValidatorGenesis::ledger_exists(&ledger_path));