Skip to content

Commit

Permalink
test improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetmircik committed Sep 2, 2014
1 parent f7c2563 commit e8fe05d
Showing 1 changed file with 1 addition and 5 deletions.
@@ -1,11 +1,9 @@
package com.hazelcast.map;

import com.hazelcast.config.Config;
import com.hazelcast.core.EntryAdapter;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import com.hazelcast.core.MapEvent;
import com.hazelcast.instance.GroupProperties;
import com.hazelcast.test.AssertTask;
import com.hazelcast.test.HazelcastParallelClassRunner;
import com.hazelcast.test.HazelcastTestSupport;
Expand Down Expand Up @@ -52,9 +50,7 @@ public void testEvictAll_preserveLockedKeys() throws Exception {
int numberOfLockedKeys = 123;
int expectedNumberOfEvictedKeys = numberOfEntries - numberOfLockedKeys;
final CountDownLatch countDownLatch = new CountDownLatch(expectedNumberOfEvictedKeys);
Config cfg = new Config();
cfg.setProperty(GroupProperties.PROP_PARTITION_COUNT, "1");
HazelcastInstance node = createHazelcastInstance(cfg);
HazelcastInstance node = createHazelcastInstance();
IMap<Integer, Integer> map = node.getMap(randomMapName());
map.addLocalEntryListener(new EntryAdapter<Integer, Integer>() {
@Override
Expand Down

0 comments on commit e8fe05d

Please sign in to comment.