From 75ef722a2c2a4a08ed23e93e528441ee8b855036 Mon Sep 17 00:00:00 2001 From: Stuart Axelbrooke Date: Mon, 20 Oct 2025 08:06:06 -0700 Subject: [PATCH] impl test_schedulable_want_no_matching_job --- databuild/orchestrator.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/databuild/orchestrator.rs b/databuild/orchestrator.rs index 18b98ba..0df9fb3 100644 --- a/databuild/orchestrator.rs +++ b/databuild/orchestrator.rs @@ -419,9 +419,21 @@ mod tests { // Use case: A schedulable want that can't be matched to a job should return an error #[test] - #[ignore] fn test_schedulable_want_no_matching_job() { - todo!() + // Given + let mut orchestrator = build_orchestrator(); + let events = vec![Event::WantCreateV1(WantCreateEventV1 { + partitions: vec!["data/alpha".into()], + ..WantCreateEventV1::sample() + })]; + + // When + orchestrator + .poll_wants() + .expect("shouldn't fail to poll wants"); + + // Should not have scheduled any jobs + assert_eq!(orchestrator.not_started_jobs.len(), 0); } }