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): add import state tests
Steven Enamakel5c9b4422d36b
diff --git a/crates/openhuman-core/src/storage/import_state_tests.rs b/crates/openhuman-core/src/storage/import_state_tests.rsindex 39c0f77433..f6bf99bd48 100644--- a/crates/openhuman-core/src/storage/import_state_tests.rs+++ b/crates/openhuman-core/src/storage/import_state_tests.rs@@ -232,16 +232,16 @@ fn a_waiting_process_runs_once_the_holder_releases() {fn a_long_import_keeps_its_claim_alive() {let repo = repo();let now = chrono::Utc::now().timestamp_millis();- // 600ms lease, body runs 1.6s: without renewal a rival would take over. The+ // 1.2s lease, body runs 3.2s: without renewal a rival would take over. The// lease is long enough that a loaded machine starving the renewal thread for// a few hundred ms does not read as a lapse.let rival_repo = repo.clone();- let rival_ran = with_claim_at(&repo, OWNER, "m", now, 600, || {+ let rival_ran = with_claim_at(&repo, OWNER, "m", now, 1200, || {let mut took_over = false;for _ in 0..8 {- std::thread::sleep(std::time::Duration::from_millis(200));+ std::thread::sleep(std::time::Duration::from_millis(400));let at = chrono::Utc::now().timestamp_millis();- took_over |= with_claim_at(&rival_repo, OWNER, "m", at, 600, || Ok(()))+ took_over |= with_claim_at(&rival_repo, OWNER, "m", at, 1200, || Ok(())).unwrap().is_some();}