impl test_schedulable_want_no_matching_job

This commit is contained in:
Stuart Axelbrooke 2025-10-20 08:06:06 -07:00
parent bbeceaa015
commit 75ef722a2c

View file

@ -419,9 +419,21 @@ mod tests {
// Use case: A schedulable want that can't be matched to a job should return an error // Use case: A schedulable want that can't be matched to a job should return an error
#[test] #[test]
#[ignore]
fn test_schedulable_want_no_matching_job() { 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);
} }
} }