Skip to content

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

test(storage): pass borrowed key to documents put in lease test

Steven Enamakele8579cd0abda
diff --git a/crates/openhuman-core/src/storage/lease_documents_tests.rs b/crates/openhuman-core/src/storage/lease_documents_tests.rs
index cbf14da087..d62a8a99a5 100644
--- a/crates/openhuman-core/src/storage/lease_documents_tests.rs
+++ b/crates/openhuman-core/src/storage/lease_documents_tests.rs
@@ -107,10 +107,9 @@ async fn bad_keys_and_corrupt_records_are_storage_errors() {
.documents()
.put(
LEASE_COLLECTION,
- &tinystoragedrivers::Key::of([LEASE_OWNER, "k"])
+ tinystoragedrivers::Key::of([LEASE_OWNER, "k"])
.unwrap()
- .as_str()
- .to_string(),
+ .as_str(),
serde_json::json!({ "holder": 7 }),
Precondition::None,
)