Skip to content

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

test(threads): update staged lease cleanup condition

Steven Enamakele72770e800d4
diff --git a/crates/openhuman-core/src/threads/attachments_tests.rs b/crates/openhuman-core/src/threads/attachments_tests.rs
index 48fc2f66dd..e512af419d 100644
--- a/crates/openhuman-core/src/threads/attachments_tests.rs
+++ b/crates/openhuman-core/src/threads/attachments_tests.rs
@@ -579,7 +579,7 @@ async fn native_staged_lease_cleans_dropped_queue_and_preserves_committed_claims
let record = get_staged_record(&repo, &staged_doc_id(&removed_id).unwrap())
.unwrap()
.unwrap();
- if record.claim.is_some_and(|claim| claim.canceled) {
+ if record.claim.is_some_and(|claim| claim.canceled) && !removed_file.exists() {
break;
}
tokio::task::yield_now().await;