Skip to content

Commit cf2bf3c

Browse files
committed
remove asserts from documentation
1 parent 70cbfb8 commit cf2bf3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ public void restClientClusterHealth() throws IOException {
122122
.build();
123123

124124
Response response = client.performRequest(new Request("GET", "/_cluster/health"));
125+
// }}
125126
assertThat(response.getStatusLine().getStatusCode(), is(200));
126127
assertThat(EntityUtils.toString(response.getEntity()), containsString("cluster_name"));
128+
// httpClientContainer {{
127129
}
128130
// }
129131
}
@@ -133,7 +135,6 @@ public void transportClientClusterHealth() {
133135
// transportClientContainer {
134136
// Create the elasticsearch container.
135137
try (ElasticsearchContainer container = new ElasticsearchContainer()) {
136-
137138
// Start the container. This step might take some time...
138139
container.start();
139140

@@ -145,7 +146,9 @@ public void transportClientClusterHealth() {
145146
.addTransportAddress(transportAddress)) {
146147
ClusterHealthResponse healths = transportClient.admin().cluster().prepareHealth().get();
147148
String clusterName = healths.getClusterName();
149+
// }}}
148150
assertThat(clusterName, is(expectedClusterName));
151+
// transportClientContainer {{{
149152
}
150153
}
151154
// }

0 commit comments

Comments
 (0)