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); } }