Append process info for test table name.
Partial fix for ONOS-1277.
To apply similar workaround for Topology related tests require
more fundamental change in datastore package to support namespace.
Change-Id: Id3c2d7a16a9078b5fc198ceb4ce4310c4a871e0b
diff --git a/src/test/java/net/onrc/onos/core/datastore/AtomicCounterTest.java b/src/test/java/net/onrc/onos/core/datastore/AtomicCounterTest.java
index 6bae01e..384cc03 100644
--- a/src/test/java/net/onrc/onos/core/datastore/AtomicCounterTest.java
+++ b/src/test/java/net/onrc/onos/core/datastore/AtomicCounterTest.java
@@ -4,6 +4,7 @@
import java.util.ArrayList;
import java.util.List;
+import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ConcurrentMap;
@@ -31,7 +32,7 @@
System.setProperty("net.onrc.onos.core.datastore.hazelcast.client.attemptLimit", "0");
}
- private static final String TEST_COUNTER = "TestCounter";
+ private static final String TEST_COUNTER = "TestCounter" + UUID.randomUUID();
private static final byte[] LONG_ZERO = {0, 0, 0, 0, 0, 0, 0, 0}; // 0L
private IKVTableID counterID;
diff --git a/src/test/java/net/onrc/onos/core/datastore/hazelcast/HZTableTest.java b/src/test/java/net/onrc/onos/core/datastore/hazelcast/HZTableTest.java
index dd600d6..44d71d6 100644
--- a/src/test/java/net/onrc/onos/core/datastore/hazelcast/HZTableTest.java
+++ b/src/test/java/net/onrc/onos/core/datastore/hazelcast/HZTableTest.java
@@ -11,6 +11,7 @@
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.TreeMap;
+import java.util.UUID;
import net.onrc.onos.core.datastore.IKVTable.IKVEntry;
import net.onrc.onos.core.datastore.ObjectDoesntExistException;
@@ -35,7 +36,7 @@
System.setProperty("net.onrc.onos.core.datastore.hazelcast.client.attemptLimit", "0");
}
- static final String TEST_TABLE_NAME = "TableForUnitTest";
+ static final String TEST_TABLE_NAME = "TableForUnitTest" + UUID.randomUUID();
HZTable table;
@Before