Skip to content

Commit

Permalink
Add a alias test
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
  • Loading branch information
shanghaikid committed Jan 29, 2024
1 parent dcfa3a2 commit 7ff4b2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/grpc/Alias.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 7ff4b2a

Please sign in to comment.