Skip to content

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

test(subsystem): serialize status handler test with env lock

Steven Enamakel9e9509d3bbaa
diff --git a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
index 20e7d38361..37eca93fcb 100644
--- a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
+++ b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
@@ -24,6 +24,9 @@ fn schemas_and_controllers_line_up() {
#[tokio::test]
async fn handler_returns_a_subsystems_array_containing_the_memory_slot() {
+ // The handler loads the process-default config, which reads the workspace
+ // environment other tests point at temp dirs under this lock.
+ let _env = crate::config::TEST_ENV_LOCK.lock().await;
let value = handle_status(DispatchCtx::process_default(), Map::new())
.await
.expect("handler succeeds");