Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariavarvaroi committed Oct 29, 2024
1 parent e7fa6b9 commit 5250ba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/existing_mnemonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ use std::{
};

/*
generate 1 validator with existing mnemonic
set the MNEMONIC environment variable
generate 1 validator without specifying the mnemonic
(without withdrawal address specified, i.e. the address is derived from the public key)
(without kdf specified, i.e. pbkdf2 will be used)
*/
#[test]
fn test_deposit_data_keystore() -> Result<(), Box<dyn std::error::Error>> {
fn test_deposit_data_keystore_mnemonic_as_env_var() -> Result<(), Box<dyn std::error::Error>> {
let chain = "goerli";
let expected_decryption_password = "testtest";
let expected_mnemonic = "ski interest capable knee usual ugly duty exercise tattoo subway delay upper bid forget say";
std::env::set_var("MNEMONIC", expected_mnemonic);
let num_validators = "1";

// test directory
Expand All @@ -49,8 +51,6 @@ fn test_deposit_data_keystore() -> Result<(), Box<dyn std::error::Error>> {
cmd.arg(chain);
cmd.arg("--keystore_password");
cmd.arg(expected_decryption_password);
cmd.arg("--mnemonic");
cmd.arg(expected_mnemonic);
cmd.arg("--num_validators");
cmd.arg(num_validators);

Expand Down

0 comments on commit 5250ba1

Please sign in to comment.