Skip to content

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

test(import): tighten assertion for already-present records

Steven Enamakelff74b2e44fe8
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
index 6a64c43d8c..7a73ddab98 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
@@ -307,9 +307,10 @@ fn a_record_the_backend_already_holds_is_never_overwritten() {
// A second workspace marker (a different workspace on a shared backend)
// runs the import again over the same backend.
let (_other, other_config) = workspace();
- assert!(
- written(import_flows(&backend, &Scope::local(), &other_config).unwrap()) < 12,
- "records already present are counted as existing"
+ assert_eq!(
+ written(import_flows(&backend, &Scope::local(), &other_config).unwrap()),
+ 0,
+ "records already present are counted as existing, not written"
);
let name = crate::storage::block_on_anyhow(async move {
Ok(catalog.get_flow("flow-alpha").await?.unwrap().name)