[TEST] use a default host name if localAddress is not available

Closes #7409
This commit is contained in:
Simon Willnauer 2014-08-23 13:46:03 +02:00
parent 805f042293
commit 45f062792c
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ public final class InternalTestCluster extends TestCluster {
public static String clusterName(String prefix, String childVMId, long clusterSeed) {
StringBuilder builder = new StringBuilder(prefix);
builder.append('-').append(NetworkUtils.getLocalAddress().getHostName());
builder.append('-').append(NetworkUtils.getLocalHostName("__default_host__"));
builder.append("-CHILD_VM=[").append(childVMId).append(']');
builder.append("-CLUSTER_SEED=[").append(clusterSeed).append(']');
// if multiple maven task run on a single host we better have an identifier that doesn't rely on input params