commit | 2323596967f8284fc206f2fc2e6bd1b290df4c04 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Fri Feb 03 11:44:15 2017 -0800 |
committer | Thomas Vachuska <tom@onlab.us> | Fri Feb 03 11:44:15 2017 -0800 |
tree | 174e27307ff2715803790ee71e511e21aaef3f2a | |
parent | e538711b8dcb6dbe317af50c4e46836aeb04d6b3 [diff] [blame] |
Added code to intent unit tests to pre-emptively unbind ID generator to avoid cascading failures. Change-Id: I2e5aff44a90ceeaaad71d7154b79f20edab620a7
diff --git a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/GossipIntentStoreTest.java b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/GossipIntentStoreTest.java index ba88e78..42ec399 100644 --- a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/GossipIntentStoreTest.java +++ b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/GossipIntentStoreTest.java
@@ -58,6 +58,7 @@ intentStore.partitionService = new WorkPartitionServiceAdapter(); intentStore.clusterService = new ClusterServiceAdapter(); idGenerator = new MockIdGenerator(); + Intent.unbindIdGenerator(idGenerator); Intent.bindIdGenerator(idGenerator); builder1 = HostToHostIntent .builder()