Skip to content

Commit

Permalink
Merge branch 'main' of github.com:milvus-io/milvus-sdk-node
Browse files Browse the repository at this point in the history
  • Loading branch information
shanghaikid committed Jun 11, 2024
2 parents fd495f0 + 47dd72d commit ff9a454
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/grpc/Basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ const schema = [
max_length: 128,
is_partition_key: false,
},
{
name: 'array',
description: 'array field',
data_type: DataType.Array,
element_type: DataType.VarChar,
max_capacity: 128,
max_length: 128,
is_partition_key: false,
},
];

describe(`Basic API without database`, () => {
Expand All @@ -35,6 +44,13 @@ describe(`Basic API without database`, () => {
expect(res.error_code).toEqual(ErrorCode.SUCCESS);
});

it(`Describe collection should be successful`, async () => {
const desc = await milvusClient.describeCollection({
collection_name: COLLECTION_NAME,
});
expect(desc.schema.fields.length).toEqual(schema.length);
});

it(`Create index should be successful`, async () => {
const index = await milvusClient.createIndex({
collection_name: COLLECTION_NAME,
Expand Down

0 comments on commit ff9a454

Please sign in to comment.