Skip to content

Commit 80a5f93

Browse files
committed
Revert "outputting server version in test logs"
This reverts commit 9ddabeb.
1 parent 9ddabeb commit 80a5f93

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

java-client/src/test/java/co/elastic/clients/elasticsearch/ElasticsearchTestServer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class ElasticsearchTestServer implements AutoCloseable {
5353
private String url;
5454
private SSLContext sslContext;
5555
private ElasticsearchClient client;
56-
private static String version;
5756

5857
private static ElasticsearchTestServer global;
5958
private static final String artifactsSnapshotUrl = "https://artifacts-snapshot.elastic" +
@@ -88,13 +87,13 @@ public static synchronized ElasticsearchTestServer global(@Nullable String passw
8887
}
8988
} catch (Exception e) {
9089
// Create container
91-
System.out.println("Starting global ES test server version " + version);
90+
System.out.println("Starting global ES test server.");
9291
global = new ElasticsearchTestServer();
9392
global.start();
9493
}
9594

9695
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
97-
System.out.println("Stopping global ES test server version " + version);
96+
System.out.println("Stopping global ES test server.");
9897
global.close();
9998
}));
10099
}
@@ -162,7 +161,7 @@ public synchronized ElasticsearchTestServer start() {
162161
}
163162

164163
String esImage = "docker.elastic.co/elasticsearch/elasticsearch:" + version;
165-
this.version = version.toString();
164+
System.out.println("Starting elasticsearch server version " + version);
166165

167166
DockerImageName image;
168167
if (plugins.length == 0) {

0 commit comments

Comments
 (0)