Skip to content

Commit

Permalink
Fix shard naming in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Dec 4, 2024
1 parent 4f0296f commit a950026
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ipa-core/src/query/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,18 +1151,18 @@ mod tests {
#[tokio::test]
async fn combined_status_response() {
fn shard_handle(si: ShardIndex) -> Arc<dyn RequestHandler<ShardIndex>> {
const THIRD_SHARD: ShardIndex = ShardIndex::from_u32(3);
const SECOND_SHARD: ShardIndex = ShardIndex::from_u32(2);
const FOURTH_SHARD: ShardIndex = ShardIndex::from_u32(3);
const THIRD_SHARD: ShardIndex = ShardIndex::from_u32(2);
create_handler(move |_| async move {
match si {
THIRD_SHARD => {
FOURTH_SHARD => {
Err(ApiError::QueryStatus(QueryStatusError::DifferentStatus {
query_id: QueryId,
my_status: QueryStatus::Completed,
other_status: QueryStatus::Preparing,
}))
}
SECOND_SHARD => {
THIRD_SHARD => {
Err(ApiError::QueryStatus(QueryStatusError::DifferentStatus {
query_id: QueryId,
my_status: QueryStatus::Running,
Expand Down

0 comments on commit a950026

Please sign in to comment.