File tree Expand file tree Collapse file tree
java-client/src/test/java/co/elastic/clients/elasticsearch Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments