Skip to content

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

test(storage): isolate home dir from workspace in desktop upgrade e2e

Steven Enamakelf70f9cca6ee1
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index d3ea6ea36d..8e3314ec2a 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -442,10 +442,11 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched() {
std::env::set_var("OPENHUMAN_KEYRING_BACKEND", "file");
std::env::set_var("OPENHUMAN_KEYRING_MASTER_KEY", "33".repeat(32));
+ let home_dir = tempfile::tempdir().unwrap();
let workspace_dir = tempfile::tempdir().unwrap();
let workspace = workspace_dir.path();
- std::env::set_var("HOME", workspace);
- std::env::set_var("USERPROFILE", workspace);
+ std::env::set_var("HOME", home_dir.path());
+ std::env::set_var("USERPROFILE", home_dir.path());
std::env::set_var("OPENHUMAN_WORKSPACE", workspace);
std::env::set_var("OPENHUMAN_MODULE_SOURCE", "linked");
let fixture = desktop_workspace(workspace);