Skip to content

Commit

Permalink
Remove completed_count from WpQueueInfo
Browse files Browse the repository at this point in the history
This property was removed from woodpecker in woodpecker-ci/woodpecker#3378 and made it to the 2.4.0 release
  • Loading branch information
Nothing4You committed Apr 5, 2024
1 parent dd7df6e commit c1d99d5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pub struct WpQueueInfoStats {
pending_count: u32,
waiting_on_deps_count: u32,
running_count: u32,
completed_count: u32,
}

#[derive(Deserialize, Debug)]
Expand Down Expand Up @@ -152,8 +151,7 @@ mod tests {
"worker_count": 0,
"pending_count": 0,
"waiting_on_deps_count": 0,
"running_count": 0,
"completed_count": 0
"running_count": 0
},
"paused": false
}"#;
Expand Down Expand Up @@ -197,8 +195,7 @@ mod tests {
"worker_count": 0,
"pending_count": 2,
"waiting_on_deps_count": 0,
"running_count": 0,
"completed_count": 0
"running_count": 0
},
"paused": false
}"#;
Expand Down Expand Up @@ -248,8 +245,7 @@ mod tests {
"worker_count": 0,
"pending_count": 1,
"waiting_on_deps_count": 0,
"running_count": 1,
"completed_count": 0
"running_count": 1
},
"paused": false
}"#;
Expand Down Expand Up @@ -281,7 +277,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down Expand Up @@ -318,7 +313,6 @@ mod tests {
pending_count: 1,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand All @@ -333,7 +327,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down Expand Up @@ -370,7 +363,6 @@ mod tests {
pending_count: 1,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand All @@ -383,7 +375,6 @@ mod tests {
pending_count: 0,
waiting_on_deps_count: 0,
running_count: 0,
completed_count: 0,
},
};
strategy.apply(&queue_info).await;
Expand Down

0 comments on commit c1d99d5

Please sign in to comment.