File tree Expand file tree Collapse file tree
modules/weaviate/src/test/java/org/testcontainers/weaviate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ void testWeaviate() throws Exception {
2222 ) {
2323 weaviate .start ();
2424 try (
25- WeaviateClient client = WeaviateClient .connectToCustom (conn ->
26- conn
25+ WeaviateClient client = WeaviateClient .connectToCustom (conn -> {
26+ return conn
2727 .scheme ("http" )
2828 .httpHost (weaviate .getHost ())
2929 .httpPort (weaviate .getMappedPort (8080 ))
3030 .grpcHost (weaviate .getHost ())
31- .grpcPort (weaviate .getMappedPort (50051 ))
32- )
31+ .grpcPort (weaviate .getMappedPort (50051 ));
32+ } )
3333 ) {
3434 InstanceMetadata meta = client .meta ();
3535 assertThat (meta .version ()).isEqualTo ("1.32.0" );
@@ -52,14 +52,14 @@ void testWeaviateWithModules() throws Exception {
5252 try (WeaviateContainer weaviate = new WeaviateContainer ("semitechnologies/weaviate:1.32.0" ).withEnv (env )) {
5353 weaviate .start ();
5454 try (
55- WeaviateClient client = WeaviateClient .connectToCustom (conn ->
56- conn
55+ WeaviateClient client = WeaviateClient .connectToCustom (conn -> {
56+ return conn
5757 .scheme ("http" )
5858 .httpHost (weaviate .getHost ())
5959 .httpPort (weaviate .getMappedPort (8080 ))
6060 .grpcHost (weaviate .getHost ())
61- .grpcPort (weaviate .getMappedPort (50051 ))
62- )
61+ .grpcPort (weaviate .getMappedPort (50051 ));
62+ } )
6363 ) {
6464 InstanceMetadata meta = client .meta ();
6565 assertThat (meta .version ()).isEqualTo ("1.32.0" );
You can’t perform that action at this time.
0 commit comments