queue-runner: make fair-share assertion unconditional
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If983d379a5a369c547dff61b57f3a9a36a6a6964
This commit is contained in:
parent
3716a34972
commit
25699e5e97
1 changed files with 9 additions and 7 deletions
|
|
@ -426,13 +426,15 @@ async fn test_fair_share_scheduling() {
|
|||
.await
|
||||
.expect("list pending after running");
|
||||
|
||||
if !pending2.is_empty() {
|
||||
assert_eq!(
|
||||
pending2[0].evaluation_id, eval_lo.id,
|
||||
"underserved lo-share jobset should be scheduled first when hi-share is \
|
||||
over-served"
|
||||
);
|
||||
}
|
||||
assert!(
|
||||
!pending2.is_empty(),
|
||||
"expected pending builds from lo-share jobset"
|
||||
);
|
||||
assert_eq!(
|
||||
pending2[0].evaluation_id, eval_lo.id,
|
||||
"underserved lo-share jobset should be scheduled first when hi-share is \
|
||||
over-served"
|
||||
);
|
||||
|
||||
// Clean up
|
||||
let _ = fc_common::repo::projects::delete(&pool, project_hi.id).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue