Skip to content

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

test(orchestration): clean up background completions in e2e tests

Steven Enamakele0fdcfd36683
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index 2d81fc3947..938003512c 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -185,6 +185,9 @@ async fn archetype_delegation_defaults_to_async_with_durable_session_e2e() {
.is_empty(),
"finished result queued for background delivery"
);
+ crate::agent::orchestration::background_completions::forget_workspace_for_test(
+ workspace.path(),
+ );
}
#[tokio::test]
@@ -324,6 +327,9 @@ async fn continue_subagent_resumes_idle_durable_session_e2e() {
provider.saw("original task from an earlier turn"),
"persisted history was replayed into the resumed run"
);
+ crate::agent::orchestration::background_completions::forget_workspace_for_test(
+ workspace.path(),
+ );
}
#[tokio::test]