Skip to content

Commit

Permalink
Fix CLI Faucet test (#3765)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm50 authored Oct 29, 2024
1 parent f65de68 commit 1a4f3f8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions crates/iota/tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use iota::{
key_identity::{KeyIdentity, get_identity_address},
};
use iota_config::{
Config, IOTA_CLIENT_CONFIG, IOTA_FULLNODE_CONFIG, IOTA_GENESIS_FILENAME,
IOTA_CLIENT_CONFIG, IOTA_FULLNODE_CONFIG, IOTA_GENESIS_FILENAME,
IOTA_KEYSTORE_ALIASES_FILENAME, IOTA_KEYSTORE_FILENAME, IOTA_NETWORK_CONFIG, PersistedConfig,
};
use iota_json::IotaJsonValue;
Expand Down Expand Up @@ -4144,15 +4144,7 @@ async fn test_faucet() -> Result<(), anyhow::Error> {

// Wait for the faucet to be up
sleep(Duration::from_secs(1)).await;

let wallet_config = tmp.path().join("walletconfig");
let mut keystore = iota_keys::keystore::FileBasedKeystore::new(&tmp.path().join("keystore"))?;
keystore
.generate_and_add_new_key(SignatureScheme::ED25519, None, None, None)
.unwrap();
let mut client_config = IotaClientConfig::new(keystore.into());
client_config.add_env(iota_sdk::iota_client_config::IotaEnv::localnet());
client_config.save(&wallet_config)?;
let wallet_config = test_cluster.swarm.dir().join(IOTA_CLIENT_CONFIG);
let mut context = WalletContext::new(&wallet_config, None, None)?;

let faucet_result = IotaClientCommands::Faucet {
Expand Down

0 comments on commit 1a4f3f8

Please sign in to comment.