commit | 783d3d24d6ad1360615efa773efb2f5675150543 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Mon Jun 13 17:40:02 2016 -0700 |
committer | Madan Jampani <madan@onlab.us> | Mon Jun 13 17:48:59 2016 -0700 |
tree | 9c80e794ceccc9f8ab6cfffe042f2a28b15ccf17 | |
parent | 64382426170dd275f82aee01fcece814e67796fe [diff] [blame] |
Ensure all active nodes are in contention before relinquishing a partition Change-Id: I846f810547b286736d26d319f315048398334a83
diff --git a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/IntentPartitionManagerTest.java b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/IntentPartitionManagerTest.java index 89ee8d3..fb44abd 100644 --- a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/IntentPartitionManagerTest.java +++ b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/IntentPartitionManagerTest.java
@@ -116,6 +116,11 @@ allNodes)) .anyTimes(); } + for (int i = 0; i < IntentPartitionManager.NUM_PARTITIONS; i++) { + expect(leadershipService.getCandidates(ELECTION_PREFIX + i)) + .andReturn(Arrays.asList(MY_NODE_ID, OTHER_NODE_ID)) + .anyTimes(); + } } /**