Skip to content

Commit

Permalink
Disable milvus test by default, it requires another docker container …
Browse files Browse the repository at this point in the history
…running (langchain-ai#744)
  • Loading branch information
nfcampos authored Apr 11, 2023
1 parent 98d32f3 commit 2d1d88d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions langchain/src/vectorstores/tests/milvus.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ beforeAll(async () => {
collectionName = `test_collection_${Math.random().toString(36).substring(7)}`;
});

test("Test Milvus.fromtext", async () => {
test.skip("Test Milvus.fromtext", async () => {
const texts = [
`Tortoise: Labyrinth? Labyrinth? Could it Are we in the notorious Little
Harmonic Labyrinth of the dreaded Majotaur?`,
Expand Down Expand Up @@ -53,7 +53,7 @@ Harmonic Labyrinth of the dreaded Majotaur?`,
]);
});

test("Test Milvus.fromExistingCollection", async () => {
test.skip("Test Milvus.fromExistingCollection", async () => {
const milvus = await Milvus.fromExistingCollection(embeddings, {
collectionName,
});
Expand All @@ -73,6 +73,8 @@ test("Test Milvus.fromExistingCollection", async () => {
});

afterAll(async () => {
// eslint-disable-next-line no-process-env
if (!process.env.MILVUS_URL) return;
// eslint-disable-next-line no-process-env
const client = new MilvusClient(process.env.MILVUS_URL as string);
const dropRes = await client.collectionManager.dropCollection({
Expand Down

0 comments on commit 2d1d88d

Please sign in to comment.