Skip to content

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

test(artifact_commands): hold env lock across async storage reads

Steven Enamakelc08ceb66c495
diff --git a/crates/openhuman-app/src/artifact_commands_tests.rs b/crates/openhuman-app/src/artifact_commands_tests.rs
index fb77f398cc..ddd972d970 100644
--- a/crates/openhuman-app/src/artifact_commands_tests.rs
+++ b/crates/openhuman-app/src/artifact_commands_tests.rs
@@ -41,6 +41,9 @@ async fn ready_artifact(workspace: &Path, files_dir: &Path) -> String {
meta.id
}
+// Keep the shared environment lock across the async storage reads so tests
+// that change process-wide backend configuration cannot race this lookup.
+#[allow(clippy::await_holding_lock)]
#[tokio::test]
async fn resolve_source_returns_the_file_in_the_files_folder() {
// Core-process tests can install a process-global storage backend while