Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez committed Feb 20, 2024
1 parent 1554035 commit eb40c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public WeaviateContainer(DockerImageName dockerImageName) {
withEnv("PERSISTENCE_DATA_PATH", "/var/lib/weaviate");
}

public String getEndpoint() {
public String getHttpHostAddress() {
return getHost() + ":" + getMappedPort(8080);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void test() {
// }
) {
weaviate.start();
WeaviateClient client = new WeaviateClient(new Config("http", weaviate.getEndpoint()));
WeaviateClient client = new WeaviateClient(new Config("http", weaviate.getHttpHostAddress()));
Result<Meta> meta = client.misc().metaGetter().run();
assertThat(meta.getResult().getVersion()).isEqualTo("1.22.4");
}
Expand Down

0 comments on commit eb40c6e

Please sign in to comment.