queue-runner: make fair-share assertion unconditional

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If983d379a5a369c547dff61b57f3a9a36a6a6964
This commit is contained in:
raf 2026-02-16 23:54:17 +03:00
commit 25699e5e97
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -426,13 +426,15 @@ async fn test_fair_share_scheduling() {
.await .await
.expect("list pending after running"); .expect("list pending after running");
if !pending2.is_empty() { assert!(
assert_eq!( !pending2.is_empty(),
pending2[0].evaluation_id, eval_lo.id, "expected pending builds from lo-share jobset"
"underserved lo-share jobset should be scheduled first when hi-share is \ );
over-served" 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 // Clean up
let _ = fc_common::repo::projects::delete(&pool, project_hi.id).await; let _ = fc_common::repo::projects::delete(&pool, project_hi.id).await;