Skip to content

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

test(config): wait for memory module before importing markdown entries

Steven Enamakel38dd9e82ceb0
diff --git a/crates/openhuman-core/src/config/migration_helpers/ops_tests.rs b/crates/openhuman-core/src/config/migration_helpers/ops_tests.rs
index 06f64fc8ae..539e600fde 100644
--- a/crates/openhuman-core/src/config/migration_helpers/ops_tests.rs
+++ b/crates/openhuman-core/src/config/migration_helpers/ops_tests.rs
@@ -244,8 +244,11 @@ async fn migrate_hermes_dry_run_on_empty_source_returns_report() {
#[cfg(feature = "modules")]
#[tokio::test]
async fn migrate_hermes_apply_imports_markdown_entries() {
- // Apply does real memory work; install the embedding host seam so this
- // test stands on its own under `--no-default-features` (idempotent).
+ // Apply does real memory work: wait out the memory module's load first,
+ // or the import races it and answers "memory is still starting". A test
+ // that runs in its own process (cargo nextest) always hits that window;
+ // one sharing a process with earlier memory tests usually misses it.
+ crate::memory::test_support::settle_memory_module().await;
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);