Merge pull request #2201 from olamy/bugfix/hazelcast_test_failure
use different instance name to avoid collision
This commit is contained in:
commit
cceca0fbd8
|
@ -44,7 +44,7 @@ public class ClientLastAccessTimeTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class ClientModifyMaxInactiveIntervalTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class ClientNonClusteredSessionScavengingTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class ClientOrphanedSessionTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class ClientSessionExpiryTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class ClientSessionInvalidateCreateScavengeTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class ClientSessionMigrationTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class ClientSessionScavengingTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
Config config = new Config().addMapConfig( new MapConfig().setName( MAP_NAME ) ) //
|
||||||
.setInstanceName( "beer" );
|
.setInstanceName( Long.toString( System.currentTimeMillis() ) );
|
||||||
// start Hazelcast instance
|
// start Hazelcast instance
|
||||||
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
hazelcastInstance = Hazelcast.getOrCreateHazelcastInstance( config );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue