# must fail: abr_bola_like_00 abr_bola_like_02 # the utility rule takes the lowest option where no option scores, as if it waited (abr::BolaLike::choose) diff --git a/wai/wai-rs/src/http_binding/abr.rs b/wai/wai-rs/src/http_binding/abr.rs index a8046b34..86597807 100644 --- a/wai/wai-rs/src/http_binding/abr.rs +++ b/wai/wai-rs/src/http_binding/abr.rs @@ -241,6 +241,8 @@ impl Policy for BolaLike { best = Some(i); } } + } else if k > 0 { + return 0; } else { for i in 0..k { if best.is_none_or(|b| score[i] > score[b]) {