Skip to content

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

test(approval): pin classic storage url in migration tests

Steven Enamakelce8cb3c72266
diff --git a/crates/openhuman-core/src/security/approval/store_persistence_tests.rs b/crates/openhuman-core/src/security/approval/store_persistence_tests.rs
index a81c6e3bb0..023f9d3db3 100644
--- a/crates/openhuman-core/src/security/approval/store_persistence_tests.rs
+++ b/crates/openhuman-core/src/security/approval/store_persistence_tests.rs
@@ -274,10 +274,11 @@ fn migrate_columns_is_idempotent_on_v1_databases() {
)
.unwrap();
}
- let config = Config {
+ let mut config = Config {
workspace_dir: workspace,
..Config::default()
};
+ config.storage.url = Some("classic".into());
// First open triggers the migration; existing row survives.
let rows = list_pending(&config).unwrap();
assert_eq!(rows.len(), 1);
@@ -322,10 +323,11 @@ fn migrate_session_id_scrub_overwrites_legacy_values_and_bumps_user_version() {
.unwrap();
assert_eq!(v, 0);
}
- let config = Config {
+ let mut config = Config {
workspace_dir: workspace,
..Config::default()
};
+ config.storage.url = Some("classic".into());
// First open runs the scrub.
let _ = list_pending(&config).unwrap();
{