Skip to content

Commit

Permalink
revert testclusters change
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Oct 23, 2023
1 parent a11f76a commit 886cb9e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public class ElasticsearchNode implements TestClusterConfiguration {
"is a pre-release version of Elasticsearch",
"max virtual memory areas vm.max_map_count"
);
private static final String HOSTNAME_OVERRIDE = "NodeHostname";
private static final String HOSTNAME_OVERRIDE = "LinuxDarwinHostname";
private static final String COMPUTERNAME_OVERRIDE = "WindowsComputername";

private final String path;
private final String name;
Expand Down Expand Up @@ -906,7 +907,7 @@ private Map<String, String> getESEnvironment() {

// Override the system hostname variables for testing
defaultEnv.put("HOSTNAME", HOSTNAME_OVERRIDE);
defaultEnv.put("COMPUTERNAME", HOSTNAME_OVERRIDE);
defaultEnv.put("COMPUTERNAME", COMPUTERNAME_OVERRIDE);

Set<String> commonKeys = new HashSet<>(environment.keySet());
commonKeys.retainAll(defaultEnv.keySet());
Expand Down

0 comments on commit 886cb9e

Please sign in to comment.