Skip to content

Commit 5433f9e

Browse files
committed
Add 10s startup timeout to testcontainers test
1 parent e2e0179 commit 5433f9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connection/integration.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { StartedWeaviateContainer, WeaviateContainer } from '@testcontainers/weaviate';
2+
import { Wait } from 'testcontainers';
23
import weaviate from '..';
34
import { WeaviateStartUpError } from '../errors';
45
import { Meta } from '../openapi/types';
@@ -14,6 +15,7 @@ describe('Integration testing of the ConnectionGRPC class', () => {
1415

1516
beforeAll(async () => {
1617
container = await new WeaviateContainer(`semitechnologies/weaviate:${process.env.WEAVIATE_VERSION}`)
18+
.withWaitStrategy(Wait.forHttp('/v1/.well-known/ready', 8080).withStartupTimeout(10 * 1000))
1719
.withExposedPorts(8080, 50051)
1820
.withEnvironment({
1921
GRPC_MAX_MESSAGE_SIZE: '1',

0 commit comments

Comments
 (0)