From a95002640bf83f85c651c11e517dabc83a5b4e00 Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Wed, 4 Dec 2024 09:46:25 -0800 Subject: [PATCH] Fix shard naming in tests --- ipa-core/src/query/processor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ipa-core/src/query/processor.rs b/ipa-core/src/query/processor.rs index 164a8cc2f..4b35ab3af 100644 --- a/ipa-core/src/query/processor.rs +++ b/ipa-core/src/query/processor.rs @@ -1151,18 +1151,18 @@ mod tests { #[tokio::test] async fn combined_status_response() { fn shard_handle(si: ShardIndex) -> Arc> { - 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,