From 7541cd895873d2b8ebe9713396bf7c34904b6d3a Mon Sep 17 00:00:00 2001 From: shanghaikid Date: Thu, 20 Oct 2022 10:37:07 +0800 Subject: [PATCH] fix test failed --- test/Replica.spec.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/Replica.spec.ts b/test/Replica.spec.ts index 7b00d8df..1545854a 100644 --- a/test/Replica.spec.ts +++ b/test/Replica.spec.ts @@ -26,20 +26,18 @@ describe("Collection's replica Api", () => { }); it(`Testing getReplica`, async () => { - try { - const collectionInfo = - await milvusClient.collectionManager.describeCollection({ - collection_name: COLLECTION_NAME, - } as any); + const collectionInfo = + await milvusClient.collectionManager.describeCollection({ + collection_name: COLLECTION_NAME, + } as any); - const res = await milvusClient.collectionManager.getReplicas({ - collectionID: collectionInfo.collectionID, - }); + const res = await milvusClient.collectionManager.getReplicas({ + collectionID: collectionInfo.collectionID, + }); - console.log(res); + console.log(res); - expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); - } + expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); }); it(`Testing getReplica params test`, async () => {