Skip to content

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

test(profiles): add profile helper for host cron cap tests

Steven Enamakel9b3d41312ec6
diff --git a/crates/openhuman-core/src/profiles/host_cron_cap_tests.rs b/crates/openhuman-core/src/profiles/host_cron_cap_tests.rs
index 23a033c891..ca36b6f92f 100644
--- a/crates/openhuman-core/src/profiles/host_cron_cap_tests.rs
+++ b/crates/openhuman-core/src/profiles/host_cron_cap_tests.rs
@@ -1,8 +1,18 @@
#[cfg(feature = "storage-sqlite")]
use crate::storage::test_support::sqlite_backend;
#[cfg(feature = "storage-sqlite")]
+use crate::{
+ core::runtime::{CoreContext, DispatchCtx, DomainSet, SaasConfig},
+ profiles::{ProfileHost, ProfileId, ProfileLayout},
+};
+#[cfg(feature = "storage-sqlite")]
use std::sync::Arc;
+#[cfg(feature = "storage-sqlite")]
+fn profile(name: &str) -> ProfileId {
+ ProfileId::parse(name).unwrap()
+}
+
#[cfg(feature = "storage-sqlite")]
#[tokio::test]
async fn the_operators_cron_limits_bind_every_profile_whatever_its_config_says() {