40
40
import com .tangosol .net .Coherence ;
41
41
import com .tangosol .net .CoherenceConfiguration ;
42
42
import com .tangosol .net .DistributedCacheService ;
43
+ import com .tangosol .net .InetAddressHelper ;
43
44
import com .tangosol .net .PagedTopicService ;
44
45
import com .tangosol .net .Service ;
45
46
import com .tangosol .net .Session ;
68
69
import java .io .DataOutput ;
69
70
import java .io .IOException ;
70
71
72
+ import java .net .InetAddress ;
71
73
import java .util .HashSet ;
72
74
import java .util .Set ;
73
75
import java .util .concurrent .CompletableFuture ;
@@ -89,11 +91,14 @@ public class TopicsRecoveryTests
89
91
@ BeforeClass
90
92
public static void setup () throws Exception
91
93
{
94
+ InetAddress localHost = InetAddressHelper .getLocalHost ();
92
95
System .setProperty (Logging .PROPERTY_LEVEL , "8" );
93
96
System .setProperty (CacheConfig .PROPERTY , CACHE_CONFIG );
94
97
System .setProperty (LocalStorage .PROPERTY , "false" );
95
- System .setProperty ("coherence.wka" , "127.0.0.1" );
96
- System .setProperty ("coherence.localhost" , "127.0.0.1" );
98
+ System .setProperty ("coherence.wka" , localHost .getHostAddress ());
99
+ System .setProperty ("coherence.localhost" , localHost .getHostAddress ());
100
+ System .setProperty ("test.unicast.address" , localHost .getHostAddress ());
101
+ System .setProperty ("test.unicast.port" , "0" );
97
102
System .setProperty ("coherence.ttl" , "0" );
98
103
}
99
104
0 commit comments