Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
  • Loading branch information
shanghaikid committed Jan 10, 2025
1 parent 2f92de2 commit 8f6ac13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions milvus/grpc/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ export class Data extends Collection {
params[ITER_SEARCH_ID_KEY] =
batchRes.search_iterator_v2_results!.token;
params[ITER_SEARCH_LAST_BOUND_KEY] =
batchRes.search_iterator_v2_results?.last_bound || '';
params[GUARANTEE_TIMESTAMP_KEY] = batchRes.session_ts || 0;
batchRes.search_iterator_v2_results?.last_bound;
params[GUARANTEE_TIMESTAMP_KEY] = batchRes.session_ts;
params[ITER_SEARCH_BATCH_SIZE_KEY] = batchSize;

return {
Expand Down
4 changes: 2 additions & 2 deletions test/grpc/Iterator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ describe(`Iterator API`, () => {
});
});

it('search iterator with batch size = 2 should success', async () => {
const batchSize = 2;
it('search iterator with batch size = 1 should success', async () => {
const batchSize = 1;
const total = 30;
const iterator = await milvusClient.searchIterator({
collection_name: COLLECTION,
Expand Down

0 comments on commit 8f6ac13

Please sign in to comment.