Skip to content

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

chore: files changed tests/storage_agent_scopes_e2e.rs,tests/support/cron_policy_failure.rs

Steven Enamakel4f07b4387b2f
diff --git a/tests/storage_agent_scopes_e2e.rs b/tests/storage_agent_scopes_e2e.rs
index 274a9b1b4e..0b44f82afe 100644
--- a/tests/storage_agent_scopes_e2e.rs
+++ b/tests/storage_agent_scopes_e2e.rs
@@ -29,9 +29,6 @@ use storage_case::Case;
#[path = "support/cron_policy_failure.rs"]
mod cron_policy_failure;
-use cron_policy_failure::{
- malformed_policy_rows_refuse_execution, policy_reads_refuse_execution_without_consuming_a_slot,
-};
fn agent_context(config: &Config, agent: &str) -> Arc<CoreContext> {
let context = CoreContext::current().unwrap().derive_with(
diff --git a/tests/support/cron_policy_failure.rs b/tests/support/cron_policy_failure.rs
index 0cfbfc61a7..8270fc50ca 100644
--- a/tests/support/cron_policy_failure.rs
+++ b/tests/support/cron_policy_failure.rs
@@ -235,7 +235,9 @@ async fn put_raw_policy(docs: &ScopedStorage, job_id: &str, policy: serde_json::
.unwrap();
}
-pub(super) async fn policy_reads_refuse_execution_without_consuming_a_slot(case: Case) {
+#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
+async fn policy_reads_refuse_execution_without_consuming_a_slot() {
+ let case = Case::open();
let workspace = tempfile::tempdir().unwrap();
let config = Config {
workspace_dir: workspace.path().join("workspace"),
@@ -449,7 +451,9 @@ pub(super) async fn policy_reads_refuse_execution_without_consuming_a_slot(case:
assert!(AgentContextRegistry::deregister("policy-beta", &beta));
}
-pub(super) async fn malformed_policy_rows_refuse_execution(case: Case) {
+#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
+async fn malformed_policy_rows_refuse_execution() {
+ let case = Case::open();
let workspace = tempfile::tempdir().unwrap();
let config = Config {
workspace_dir: workspace.path().join("workspace"),