Skip to content

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

test(embed): cover blocking storage open metadata handoff

Steven Enamakel0074e1a720b9
diff --git a/crates/openhuman-embed/src/runtime/seams_tests.rs b/crates/openhuman-embed/src/runtime/seams_tests.rs
index 7e95d1fab6..a8088e7ee7 100644
--- a/crates/openhuman-embed/src/runtime/seams_tests.rs
+++ b/crates/openhuman-embed/src/runtime/seams_tests.rs
@@ -327,6 +327,19 @@ async fn a_storage_url_is_opened_installed_and_the_previous_backend_restored() {
openhuman_core::storage::clear();
}
+#[test]
+fn blocking_url_open_retains_driver_metadata_for_the_cli_handoff() {
+ let mut seams = HostSeams {
+ storage: Some(StorageSource::from("memory")),
+ ..HostSeams::default()
+ };
+
+ seams.open_storage_blocking().expect("open storage URL");
+
+ assert_eq!(seams.storage_driver.as_deref(), Some("memory"));
+ assert!(matches!(seams.storage, Some(StorageSource::Backend(_))));
+}
+
#[tokio::test]
async fn a_backend_with_no_predecessor_is_cleared_and_a_replaced_one_left_alone() {
let _lock = STORAGE_LOCK.lock().await;