Skip to content

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

test(storage): reformat grant authorization assertion

Steven Enamakel54c685d50830
diff --git a/crates/openhuman-core/src/modules/storage_grants_tests.rs b/crates/openhuman-core/src/modules/storage_grants_tests.rs
index 98b31f1369..e22c185a9d 100644
--- a/crates/openhuman-core/src/modules/storage_grants_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_grants_tests.rs
@@ -141,7 +141,12 @@ fn capabilities_are_answered_for_an_object_the_grant_does_not_hold() {
assert!(authorize(&documents_only, Object::Blobs, "Capabilities", &json!(null)).is_ok());
// Anything else on that object is still refused.
assert_eq!(
- authorize(&documents_only, Object::Blobs, "Head", &json!({"key": "files/a"})),
+ authorize(
+ &documents_only,
+ Object::Blobs,
+ "Head",
+ &json!({"key": "files/a"})
+ ),
Err(Denied::Object)
);
}