isolate tests

(cherry picked from commit 3a2ad4edbfbca29bd4191fd30cab23e15fa47cde)
This commit is contained in:
wiesche
2026-10-11 00:45:56 +03:00
committed by ardocrat
parent 2302135709
commit 57a01674ff
2 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -299,8 +299,11 @@ where
{
let args = app.clone().get_matches_from(arg_vec);
let _ = get_wallet_subcommand(test_dir, wallet_name, args.clone());
// Avoid conflicts with local wallets
let wallet_dir = PathBuf::from(test_dir).join(format!("{}_bootstrap", wallet_name));
let mut config =
config::initial_setup_wallet(&ChainTypes::AutomatedTesting, None, true).unwrap();
config::initial_setup_wallet(&ChainTypes::AutomatedTesting, Some(wallet_dir), true)
.unwrap();
let mut wallet_config = config.clone().members.wallet;
wallet_config.chain_type = None;
wallet_config.api_secret_path = None;
+8 -2
View File
@@ -148,7 +148,7 @@ fn owner_v3_lifecycle() -> Result<(), grin_wallet_controller::Error> {
let value: ECDHPubkey = res.unwrap();
let shared_key = derive_ecdh_key(sec_key_str, &value.ecdh_pubkey);
// 2) get the top level directory, should default to ~/.grin/auto
// 2) get the top level directory
let req = include_str!("data/v3_reqs/get_top_level.req.json");
let res = send_request_enc::<String>(
&JsonId::StrId(String::from("1")),
@@ -159,7 +159,13 @@ fn owner_v3_lifecycle() -> Result<(), grin_wallet_controller::Error> {
)?;
println!("RES 2: {:?}", res);
assert!(res.is_ok());
assert!(res.unwrap().contains("auto"));
assert_eq!(
PathBuf::from(res.unwrap()).canonicalize().unwrap(),
PathBuf::from(test_dir)
.join("wallet1_bootstrap")
.canonicalize()
.unwrap()
);
// 3) now set the top level directory to our test wallet dir
let req = serde_json::json!({