The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(storage): use a valid credential document in the leave-in-place test
Steven Enamakel6537d7223efc
diff --git a/crates/openhuman-core/src/storage/layout/credentials_tests.rs b/crates/openhuman-core/src/storage/layout/credentials_tests.rsindex aca0fecc20..be7e250236 100644--- a/crates/openhuman-core/src/storage/layout/credentials_tests.rs+++ b/crates/openhuman-core/src/storage/layout/credentials_tests.rs@@ -128,13 +128,16 @@ async fn a_record_already_on_the_backend_wins_over_a_stale_file() {async fn a_file_that_is_not_a_credential_document_is_left_in_place() {install_master_key_source(Arc::new(FixedKey));let fx = v1_profile();- write(&fx.target.profile_dir.join(PROFILES_FILENAME), "[]");+ write(+ &fx.target.profile_dir.join(PROFILES_FILENAME),+ r#"{"profiles":[]}"#,+ );write(&fx.target.profile_dir.join(STORE_FILENAME), HTTP);run(&fx).await.unwrap();clear_master_key_source();assert_eq!(std::fs::read_to_string(fx.target.profile_dir.join(PROFILES_FILENAME)).unwrap(),- "[]"+ r#"{"profiles":[]}"#);assert!(!fx.target.profile_dir.join(STORE_FILENAME).exists());}