Skip to content

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

test(cron): gate feature-dependent tests behind their features

Steven Enamakel20277ff6287c
diff --git a/crates/openhuman-core/src/cron/ops_tests.rs b/crates/openhuman-core/src/cron/ops_tests.rs
index 62cac21de0..7b5e3a8b83 100644
--- a/crates/openhuman-core/src/cron/ops_tests.rs
+++ b/crates/openhuman-core/src/cron/ops_tests.rs
@@ -407,6 +407,7 @@ async fn run_job_now_reports_an_unknown_job() {
.is_err());
}
+#[cfg(feature = "channels")]
#[tokio::test]
async fn run_job_now_records_required_delivery_failure_as_error() {
let tmp = TempDir::new().unwrap();
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rs
index a2ed2b0253..2519c37ac9 100644
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@ -257,7 +257,7 @@ fn legacy_fixture() -> std::path::PathBuf {
.join("src/storage/import/fixtures/tinyflows/workspace/cron/jobs.db")
}
-#[cfg(feature = "storage-sqlite")]
+#[cfg(all(feature = "storage-sqlite", feature = "legacy-import"))]
#[test]
fn a_legacy_jobs_db_is_imported_by_the_storage_importer_and_left_untouched() {
let tmp = TempDir::new().unwrap();