Skip to content

Commit

Permalink
Add support for Weaviate v1.25 (testcontainers#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
antas-marcin authored Jun 25, 2024
1 parent d2056bb commit 2c07694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/weaviate/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func ExampleRunContainer_connectWithClientWithModules() {
}

opts := []testcontainers.ContainerCustomizer{
testcontainers.WithImage("semitechnologies/weaviate:1.24.5"),
testcontainers.WithImage("semitechnologies/weaviate:1.25.5"),
testcontainers.WithEnv(envs),
}

Expand Down
3 changes: 2 additions & 1 deletion modules/weaviate/weaviate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
image = "semitechnologies/weaviate:1.24.6"
image = "semitechnologies/weaviate:1.25.5"
httpPort = "8080/tcp"
grpcPort = "50051/tcp"
)
Expand All @@ -33,6 +33,7 @@ func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomize
WaitingFor: wait.ForAll(
wait.ForListeningPort(httpPort).WithStartupTimeout(5*time.Second),
wait.ForListeningPort(grpcPort).WithStartupTimeout(5*time.Second),
wait.ForHTTP("/v1/.well-known/ready").WithPort(httpPort),
),
}

Expand Down
2 changes: 1 addition & 1 deletion modules/weaviate/weaviate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
func TestWeaviate(t *testing.T) {
ctx := context.Background()

container, err := weaviate.RunContainer(ctx, testcontainers.WithImage("semitechnologies/weaviate:1.24.5"))
container, err := weaviate.RunContainer(ctx, testcontainers.WithImage("semitechnologies/weaviate:1.25.5"))
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 2c07694

Please sign in to comment.