message: [cluster-test] Ensure UpdateToLatestLedger respects MAX_TXN_BATCH_SIZE
  Closes:
  Approved by: ankushagarwal
diff: @@ -340,8 +340,10 @@ fn query_sequence_numbers(
  client: &AdmissionControlClient,
  addresses: &[AccountAddress],
  ) -> Result<Vec<u64>> {
  + let mut result = vec![];
  + for addresses_batch in addresses.chunks(MAX_TXN_BATCH_SIZE) {
  let mut update_request = UpdateToLatestLedgerRequest::default();
  - for address in addresses {
  + for address in addresses_batch {
  let mut request_item = RequestItem::default();
  let mut account_state_request = GetAccountStateRequest::default();
  account_state_request.address = address.to_vec();
  @@ -353,7 +355,7 @@ fn query_sequence_numbers(
  let resp = client
  .update_to_latest_ledger(&update_request)
  .map_err(|e| format_err!("update_to_latest_ledger failed: {:?} ", e))?;
  - let mut result = Vec::with_capacity(resp.response_items.len());
  +
  for item in resp.response_items.into_iter() {
  let item = ResponseItem::try_from(item)
  .map_err(|e| format_err!("ResponseItem::from_proto failed: {:?} ", e))?;
  @@ -361,7 +363,9 @@ fn query_sequence_numbers(
  account_state_with_proof,
  } = item
  {
  - let account_resource = get_account_resource_or_default(&account_state_with_proof.blob)
  + let account_resource = get_account_resource_or_default(
  + &account_state_with_proof.blob,
  + )
  .map_err(|e| format_err!("get_account_resource_or_default failed: {:?} ", e))?;
  result.push(account_resource.sequence_number());
  } else {
  @@ -371,6 +375,7 @@ fn query_sequence_numbers(
  );
  }
  }
  + }
  Ok(result)
  }
  