Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/web3/wallet/ops_tests.rs,crates/openhuman-core/src/we

Steven Enamakel42512c1b41d9
diff --git a/crates/openhuman-core/src/web3/wallet/ops_tests.rs b/crates/openhuman-core/src/web3/wallet/ops_tests.rs
index bcf379f183..9645ad980f 100644
--- a/crates/openhuman-core/src/web3/wallet/ops_tests.rs
+++ b/crates/openhuman-core/src/web3/wallet/ops_tests.rs
@@ -215,7 +215,7 @@ fn setup_allows_fresh_without_force() {
async fn reveal_recovery_phrase_returns_error_when_no_wallet() {
let temp = tempfile::tempdir().expect("temp dir");
let _wallet_lock = crate::web3::wallet::test_support::TEST_LOCK.lock();
- let _workspace_guard = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp);
+ let _workspace_guard = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp).await;
let result = reveal_recovery_phrase().await;
let err = result.expect_err("should error when no wallet configured");
assert!(
diff --git a/crates/openhuman-core/src/web3/wallet/test_support.rs b/crates/openhuman-core/src/web3/wallet/test_support.rs
index ac40337c71..d90dbdeffc 100644
--- a/crates/openhuman-core/src/web3/wallet/test_support.rs
+++ b/crates/openhuman-core/src/web3/wallet/test_support.rs
@@ -113,15 +113,15 @@ impl Drop for UnreachableRpcGuard {
}
}
-pub(crate) fn set_workspace_env_for_test(temp: &TempDir) -> EnvVarGuard {
- EnvVarGuard::workspace(temp.path())
+pub(crate) async fn set_workspace_env_for_test(temp: &TempDir) -> EnvVarGuard {
+ EnvVarGuard::workspace_async(temp.path()).await
}
pub(crate) async fn setup_wallet_in(temp: &TempDir) -> Result<EnvVarGuard, String> {
// Wallet state lookups rely on OPENHUMAN_WORKSPACE for the duration of
// each test. Return a guard so the tempdir path does not leak into later
// parallel tests after this test's TempDir has been dropped.
- let workspace_guard = set_workspace_env_for_test(temp);
+ let workspace_guard = set_workspace_env_for_test(temp).await;
let config = config_rpc::load_config_with_timeout().await?;
let encrypted = crate::security::encryption::rpc::encrypt_secret(&config, TEST_MNEMONIC)
.await?
diff --git a/crates/openhuman-core/src/web3/x402/seams_tests.rs b/crates/openhuman-core/src/web3/x402/seams_tests.rs
index 6105545831..540134cf34 100644
--- a/crates/openhuman-core/src/web3/x402/seams_tests.rs
+++ b/crates/openhuman-core/src/web3/x402/seams_tests.rs
@@ -135,7 +135,7 @@ fn solana_challenge_headers() -> HeaderMap {
async fn a_payment_reaches_the_host_wallet_through_the_crate() {
let _wallet_lock = crate::web3::wallet::test_support::TEST_LOCK.lock();
let temp = tempfile::tempdir().unwrap();
- let _workspace = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp);
+ let _workspace = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp).await;
super::super::init_ledger(temp.path(), "seam-test");
let err =
@@ -159,7 +159,7 @@ async fn a_payment_reaches_the_host_wallet_through_the_crate() {
async fn the_signer_reports_a_missing_wallet_for_either_chain() {
let _wallet_lock = crate::web3::wallet::test_support::TEST_LOCK.lock();
let temp = tempfile::tempdir().unwrap();
- let _workspace = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp);
+ let _workspace = crate::web3::wallet::test_support::set_workspace_env_for_test(&temp).await;
for chain in [PaymentChain::Solana, PaymentChain::Evm] {
let err = WalletPaymentSigner.account(chain).await.unwrap_err();