Skip to content

Commit

Permalink
Merge pull request #248 from weaviate/chore/delete-wcd-journey-test-c…
Browse files Browse the repository at this point in the history
…ollection-afterall

Ensure collection is deleted from WCD
  • Loading branch information
tsmith023 authored Jan 9, 2025
2 parents 86fc87a + 3748dfe commit ef950c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/collections/journey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ describe('Journey testing of the client using a WCD cluster', () => {
dateOfBirth: Date;
};

afterAll(() => client.collections.delete(collectionName));

beforeAll(async () => {
client = await weaviate.connectToWeaviateCloud(
'https://piblpmmdsiknacjnm1ltla.c1.europe-west3.gcp.weaviate.cloud',
{
authCredentials: 'NOg5AliYnrN6z7dZDuGv7SLVKhTabAaSTKS7',
}
);
return client.collections.delete(collectionName);
});

it('should create the correct config for a collection with vectorizer, generative, and reranker modules', () => {
Expand Down Expand Up @@ -167,6 +168,9 @@ describe('Journey testing of the client using a WCD cluster', () => {
vectorizer: {
name: 'text2vec-cohere',
config: {
baseUrl: 'https://api.cohere.ai',
model: 'embed-multilingual-v3.0',
truncate: 'END',
vectorizeCollectionName: true,
},
},
Expand Down

0 comments on commit ef950c4

Please sign in to comment.