Skip to content

Commit df7eb8c

Browse files
Fix tests
1 parent ca5feb2 commit df7eb8c

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/modules/chromadb/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"build": "tsc --project tsconfig.build.json"
3030
},
3131
"devDependencies": {
32-
"chromadb": "^1.9.1"
32+
"chromadb": "^1.9.1",
33+
"ollama": "^0.5.14"
3334
},
3435
"dependencies": {
3536
"testcontainers": "^10.21.0"

packages/modules/chromadb/src/chromadb-container.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("ChromaDB", { timeout: 360_000 }, () => {
110110
.withEnvironment({
111111
CHROMA_SERVER_AUTHN_CREDENTIALS: key,
112112
CHROMA_SERVER_AUTHN_PROVIDER: "chromadb.auth.token_authn.TokenAuthenticationServerProvider",
113-
CHROMA_AUTH_TOKEN_TRANSPORT_HEADER: "X_CHROMA_TOKEN",
113+
CHROMA_AUTH_TOKEN_TRANSPORT_HEADER: "X-Chroma-Token",
114114
})
115115
.start();
116116

packages/modules/chromadb/src/chromadb-container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { AbstractStartedContainer, GenericContainer, StartedTestContainer, Wait
33
const CHROMADB_PORT = 8000;
44

55
export class ChromaDBContainer extends GenericContainer {
6-
constructor(image = "chromadb/chroma:0.4.24") {
6+
constructor(image = "chromadb/chroma:0.6.3") {
77
super(image);
88
this.withExposedPorts(CHROMADB_PORT)
9-
.withWaitStrategy(Wait.forHttp("/api/v1/heartbeat", CHROMADB_PORT))
9+
.withWaitStrategy(Wait.forHttp("/api/v2/heartbeat", CHROMADB_PORT))
1010
.withStartupTimeout(120_000);
1111
}
1212

0 commit comments

Comments
 (0)