From 7ff4b2a3922819e2d38da5f8acbd985a402b70f3 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Mon, 29 Jan 2024 10:47:05 +0800 Subject: [PATCH] Add a alias test Signed-off-by: ryjiang --- test/grpc/Alias.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/grpc/Alias.spec.ts b/test/grpc/Alias.spec.ts index d2f66e33..ca80fbb3 100644 --- a/test/grpc/Alias.spec.ts +++ b/test/grpc/Alias.spec.ts @@ -40,6 +40,11 @@ describe(`Alias API`, () => { alias: COLLECTION_ALIAS, }); expect(res.error_code).toEqual(ErrorCode.SUCCESS); + const alias = await milvusClient.hasCollection({ + collection_name: COLLECTION_ALIAS, + }); + expect(alias.status.error_code).toEqual(ErrorCode.SUCCESS); + expect(alias.value).toEqual(true); }); it(`Alter alias should success`, async () => {