From 8f6ac13fd8a5d8b08b5dcd62618c98e9a37bf9e1 Mon Sep 17 00:00:00 2001 From: shanghaikid Date: Fri, 10 Jan 2025 15:44:52 +0800 Subject: [PATCH] fix test Signed-off-by: shanghaikid --- milvus/grpc/Data.ts | 4 ++-- test/grpc/Iterator.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/milvus/grpc/Data.ts b/milvus/grpc/Data.ts index 6bf1838b..401b29a4 100644 --- a/milvus/grpc/Data.ts +++ b/milvus/grpc/Data.ts @@ -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 { diff --git a/test/grpc/Iterator.spec.ts b/test/grpc/Iterator.spec.ts index adfa2767..e58bc9c4 100644 --- a/test/grpc/Iterator.spec.ts +++ b/test/grpc/Iterator.spec.ts @@ -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,