mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 14:23:13 +00:00
fix(lifecycle): harden manual transition rollout checks (#5344)
Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
@@ -1148,6 +1148,16 @@ mod tests {
|
||||
assert_eq!(response_state(&report), "partial");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn manual_transition_response_reports_partial_for_in_flight_skip() {
|
||||
let report = ManualTransitionRunReport {
|
||||
skipped_already_in_flight: 1,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
assert_eq!(response_state(&report), "partial");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn manual_transition_response_reports_partial_for_duration_budget() {
|
||||
let report = ManualTransitionRunReport {
|
||||
|
||||
Reference in New Issue
Block a user