impl test_schedulable_want_no_matching_job
This commit is contained in:
parent
bbeceaa015
commit
75ef722a2c
1 changed files with 14 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue