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): improve tinyflows test assertions
Steven Enamakel79438d7704de
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rsindex 48c21c3007..4b93bd2eb8 100644--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs@@ -340,13 +340,12 @@ fn an_invalid_flow_record_keeps_the_import_open_for_retry() {let backend = backend();let first = import_flows(&backend, &Scope::local(), &config).unwrap();- println!("invalid flow import result: {first:?}");assert!(- matches!(first, Outcome::Incomplete { skipped: 1, .. }),+ matches!(&first, Outcome::Incomplete { skipped, .. } if *skipped > 0),"a skipped flow record must keep the migration incomplete: {first:?}");let retry = import_flows(&backend, &Scope::local(), &config).unwrap();- assert!(matches!(retry, Outcome::Incomplete { skipped: 1, .. }));+ assert_eq!(retry, first, "retrying must report the same incomplete batch");assert!(legacy_flow_import_pending(&backend, &config, &Scope::local()).unwrap());assert!(!legacy_flow_import_pending(&backend,